Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "json-c"; 5 version = "0.16"; 6 7 src = fetchurl { 8 url = "https://s3.amazonaws.com/json-c_releases/releases/${pname}-${version}.tar.gz"; 9 sha256 = "sha256-jkWsj5bsd5Hq87t+5Q6cIQC7vIe40PHQMMW6igKI2Ws="; 10 }; 11 12 outputs = [ "out" "dev" ]; 13 14 nativeBuildInputs = [ cmake ]; 15 16 meta = with lib; { 17 description = "A JSON implementation in C"; 18 longDescription = '' 19 JSON-C implements a reference counting object model that allows you to 20 easily construct JSON objects in C, output them as JSON formatted strings 21 and parse JSON formatted strings back into the C representation of JSON 22 objects. 23 ''; 24 homepage = "https://github.com/json-c/json-c/wiki"; 25 maintainers = with maintainers; [ lovek323 ]; 26 platforms = platforms.unix; 27 license = licenses.mit; 28 }; 29}