core/pkgs/by-name/js/json_c/default.nix

34 lines
978 B
Nix
Raw Normal View History

2024-05-13 21:24:10 +00:00
{ lib, stdenv, fetchFromGitHub, cmake }:
2024-05-02 00:46:19 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "json-c";
version = "0.17";
src = fetchFromGitHub {
owner = "json-c";
repo = "json-c";
rev = "json-c-0.17-20230812";
hash = "sha256-R5KIJ0xVgGqffjzJaZvvvhAneJ+ZBuanyF6KYTTxb58=";
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [ cmake ];
meta = with lib; {
description = "A 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";
2024-05-13 21:24:10 +00:00
changelog =
"https://github.com/json-c/json-c/blob/${finalAttrs.src.rev}/ChangeLog";
2024-05-02 00:46:19 +00:00
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
license = licenses.mit;
};
})