Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 36 lines 973 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5}: 6 7stdenv.mkDerivation (finalAttrs: { 8 pname = "json-c"; 9 version = "0.17"; 10 11 src = fetchFromGitHub { 12 owner = "json-c"; 13 repo = "json-c"; 14 rev = "json-c-0.17-20230812"; 15 hash = "sha256-R5KIJ0xVgGqffjzJaZvvvhAneJ+ZBuanyF6KYTTxb58="; 16 }; 17 18 outputs = [ "out" "dev" ]; 19 20 nativeBuildInputs = [ cmake ]; 21 22 meta = with lib; { 23 description = "JSON implementation in C"; 24 longDescription = '' 25 JSON-C implements a reference counting object model that allows you to 26 easily construct JSON objects in C, output them as JSON formatted strings 27 and parse JSON formatted strings back into the C representation of JSON 28 objects. 29 ''; 30 homepage = "https://github.com/json-c/json-c/wiki"; 31 changelog = "https://github.com/json-c/json-c/blob/${finalAttrs.src.rev}/ChangeLog"; 32 maintainers = with maintainers; [ lovek323 ]; 33 platforms = platforms.unix; 34 license = licenses.mit; 35 }; 36})