2024-01-13 08:15:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-11-19 00:13:47 +00:00
|
|
|
pname = "json-c";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.17";
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "json-c";
|
|
|
|
repo = "json-c";
|
2024-01-13 08:15:51 +00:00
|
|
|
rev = "json-c-0.17-20230812";
|
|
|
|
hash = "sha256-R5KIJ0xVgGqffjzJaZvvvhAneJ+ZBuanyF6KYTTxb58=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "JSON implementation in C";
|
2020-04-24 23:36:52 +00:00
|
|
|
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.
|
|
|
|
'';
|
2024-01-13 08:15:51 +00:00
|
|
|
homepage = "https://github.com/json-c/json-c/wiki";
|
|
|
|
changelog = "https://github.com/json-c/json-c/blob/${finalAttrs.src.rev}/ChangeLog";
|
2022-06-26 10:26:21 +00:00
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
2024-01-13 08:15:51 +00:00
|
|
|
platforms = platforms.unix;
|
2022-06-26 10:26:21 +00:00
|
|
|
license = licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-01-13 08:15:51 +00:00
|
|
|
})
|