Files
nixpkgs/pkgs/by-name/js/json_c/package.nix
Marcin Serwin 99e6d1bfbb maintainers: drop lovek323
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
2026-02-24 23:43:50 +01:00

45 lines
1022 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "json-c";
version = "0.18";
src = fetchFromGitHub {
owner = "json-c";
repo = "json-c";
rev = "json-c-0.18-20240915";
hash = "sha256-UyMXr8Vc6kDOx1/lD2YKPiHdaTotXAF9ak0yQuwrSUA=";
};
outputs = [
"out"
"dev"
];
nativeBuildInputs = [ cmake ];
cmakeFlags = [
(lib.cmakeBool "BUILD_APPS" false)
];
meta = {
description = "JSON implementation in C";
longDescription = ''
JSON-C implements a reference counting object model that allows you to
easily construct JSON objects in C, output them as JSON formatted strings
and parse JSON formatted strings back into the C representation of JSON
objects.
'';
homepage = "https://github.com/json-c/json-c/wiki";
changelog = "https://github.com/json-c/json-c/blob/${finalAttrs.src.rev}/ChangeLog";
maintainers = [ ];
platforms = lib.platforms.unix;
license = lib.licenses.mit;
};
})