default.nix (637B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 }: 7 8 stdenv.mkDerivation (finalAttrs: { 9 pname = "jsontoolkit"; 10 version = "2.0.0"; 11 12 src = fetchFromGitHub { 13 owner = "sourcemeta"; 14 repo = "jsontoolkit"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-2UzALl9+DzbLU3U2eHbOGzGDRLlcbe8omEjvzpLe8CM="; 17 }; 18 19 nativeBuildInputs = [ cmake ]; 20 21 meta = { 22 description = "JSON Toolkit is a swiss-army knife for JSON programming in modern C++"; 23 homepage = "https://jsontoolkit.sourcemeta.com/"; 24 license = lib.licenses.agpl3Only; 25 maintainers = [ lib.maintainers.sikmir ]; 26 platforms = lib.platforms.unix; 27 }; 28 })