about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/parson
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/parson')
-rw-r--r--nixpkgs/pkgs/development/libraries/parson/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/parson/default.nix b/nixpkgs/pkgs/development/libraries/parson/default.nix
new file mode 100644
index 000000000000..a61df952f893
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/parson/default.nix
@@ -0,0 +1,23 @@
+{ lib, stdenv, fetchFromGitHub, meson, ninja }:
+
+stdenv.mkDerivation {
+  pname = "parson";
+  version = "1.5.2";
+
+  src = fetchFromGitHub {
+    owner = "kgabis";
+    repo = "parson";
+    rev = "60c37844d7a1c97547812cac3423d458c73e60f9"; # upstream doesn't use tags
+    hash = "sha256-SbM0kqRtdcz1s+pUTW7VPMY1O6zdql3bao19Rk4t470=";
+  };
+
+  nativeBuildInputs = [ meson ninja ];
+
+  meta = with lib; {
+    description = "Lightweight JSON library written in C";
+    homepage = "https://github.com/kgabis/parson";
+    license = licenses.mit;
+    platforms = platforms.all;
+    maintainers = [ maintainers.marsam ];
+  };
+}