lol
at v192 32 lines 1.0 kB view raw
1{ stdenv, fetchurl, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 name = "json-c-0.12"; 5 src = fetchurl { 6 url = "https://s3.amazonaws.com/json-c_releases/releases/${name}-nodoc.tar.gz"; 7 sha256 = "0dgvjjyb9xva63l6sy70sdch2w4ryvacdmfd3fg2f2v13lqx5mkg"; 8 }; 9 10 patches = [ ./unused-variable.patch ]; 11 12 buildInputs = [ autoreconfHook ]; # won't configure without it, no idea why 13 14 # compatibility hack (for mypaint at least) 15 postInstall = '' 16 ln -s json-c.pc "$out/lib/pkgconfig/json.pc" 17 ''; 18 19 meta = with stdenv.lib; { 20 description = "A JSON implementation in C"; 21 homepage = https://github.com/json-c/json-c/wiki; 22 maintainers = with maintainers; [ lovek323 ]; 23 platforms = platforms.unix; 24 25 longDescription = '' 26 JSON-C implements a reference counting object model that allows you to 27 easily construct JSON objects in C, output them as JSON formatted strings 28 and parse JSON formatted strings back into the C representation of JSON 29 objects. 30 ''; 31 }; 32}