commit 64a391d937b34fa74b71df44dc468408c500f5f6
parent 98de05f0a87dcd63668881cf84e95e7a8bb8a982
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sun, 8 Sep 2024 16:27:01 +0400
Add jsontoolkit
Diffstat:
2 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -83,6 +83,7 @@ lib.makeScope newScope (
iso15765-canbus = callPackage ./development/libraries/iso15765-canbus { };
isotp-c = callPackage ./development/libraries/isotp-c { };
+ jsontoolkit = callPackage ./development/libraries/jsontoolkit { };
libgnunetchat = callPackage ./development/libraries/libgnunetchat { };
libshell = callPackage ./development/libraries/libshell { };
microjson = callPackage ./development/libraries/microjson { };
diff --git a/pkgs/development/libraries/jsontoolkit/default.nix b/pkgs/development/libraries/jsontoolkit/default.nix
@@ -0,0 +1,28 @@
+{
+ lib,
+ stdenv,
+ fetchFromGitHub,
+ cmake,
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+ pname = "jsontoolkit";
+ version = "2.0.0";
+
+ src = fetchFromGitHub {
+ owner = "sourcemeta";
+ repo = "jsontoolkit";
+ rev = "v${finalAttrs.version}";
+ hash = "sha256-2UzALl9+DzbLU3U2eHbOGzGDRLlcbe8omEjvzpLe8CM=";
+ };
+
+ nativeBuildInputs = [ cmake ];
+
+ meta = {
+ description = "JSON Toolkit is a swiss-army knife for JSON programming in modern C++";
+ homepage = "https://jsontoolkit.sourcemeta.com/";
+ license = lib.licenses.agpl3Only;
+ maintainers = [ lib.maintainers.sikmir ];
+ platforms = lib.platforms.unix;
+ };
+})