nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit da6c46dfa2378cfb36cfde1631911a4475bf839e
parent 710d7a4ce401a3754e866dfbef38802c9d5c3b10
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Fri,  9 Feb 2024 21:15:06 +0400

Add jsoncons

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/development/libraries/jsoncons/default.nix | 23+++++++++++++++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -85,6 +85,7 @@ lib.makeScope newScope ( ### DEVELOPMENT / LIBRARIES iso15765-canbus = callPackage ./development/libraries/iso15765-canbus { }; + jsoncons = callPackage ./development/libraries/jsoncons { }; libgnunetchat = callPackage ./development/libraries/libgnunetchat { }; libshell = callPackage ./development/libraries/libshell { }; microjson = callPackage ./development/libraries/microjson { }; diff --git a/pkgs/development/libraries/jsoncons/default.nix b/pkgs/development/libraries/jsoncons/default.nix @@ -0,0 +1,23 @@ +{ lib, stdenv, fetchFromGitHub, cmake }: + +stdenv.mkDerivation rec { + pname = "jsoncons"; + version = "0.173.4"; + + src = fetchFromGitHub { + owner = "danielaparker"; + repo = "jsoncons"; + rev = "v${version}"; + hash = "sha256-Mf3kvfYAcwNrwbvGyMP6PQmk5e5Mz7b0qCZ6yi95ksk="; + }; + + nativeBuildInputs = [ cmake ]; + + meta = with lib; { + description = "A C++, header-only library for constructing JSON and JSON-like data formats"; + inherit (src.meta) homepage; + license = licenses.boost; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.all; + }; +}