about summary refs log tree commit diff
path: root/pkgs/development/libraries/cjson
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-18 22:41:49 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-02-01 18:23:23 +0100
commit5c330746607296142f251c97b3bdb410c5611f45 (patch)
tree6ea4671f76f7515dbb71c79dfe9dc63f8d9e9025 /pkgs/development/libraries/cjson
parent9ff91f967cb6ad74bb621f5dfa07ce42a83c29dc (diff)
cjson: init at 1.7.14
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'pkgs/development/libraries/cjson')
-rw-r--r--pkgs/development/libraries/cjson/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/development/libraries/cjson/default.nix b/pkgs/development/libraries/cjson/default.nix
new file mode 100644
index 0000000000000..1a5d4b77f6c00
--- /dev/null
+++ b/pkgs/development/libraries/cjson/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, lib, fetchFromGitHub, cmake }:
+
+stdenv.mkDerivation rec {
+  pname = "cjson";
+  version = "1.7.14";
+
+  src = fetchFromGitHub {
+    owner = "DaveGamble";
+    repo = "cJSON";
+    rev = "v${version}";
+    sha256 = "1a3i9ydl65dgwgmlg79n5q8qilmjkaakq56sam1w25zcrd8jy11q";
+  };
+
+  nativeBuildInputs = [ cmake ];
+
+  meta = with lib; {
+    homepage = "https://github.com/DaveGamble/cJSON";
+    description = "Ultralightweight JSON parser in ANSI C";
+    license = licenses.mit;
+    maintainers = [ maintainers.matthiasbeyer ];
+    platforms = platforms.unix;
+  };
+}