Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 28 lines 905 B view raw
1{ stdenv, fetchurl, unzip }: 2let 3 version = "7.6.1"; 4in stdenv.mkDerivation { 5 pname = "libjson"; 6 inherit version; 7 src = fetchurl { 8 url = "mirror://sourceforge/libjson/libjson_${version}.zip"; 9 sha256 = "0xkk5qc7kjcdwz9l04kmiz1nhmi7iszl3k165phf53h3a4wpl9h7"; 10 }; 11 patches = [ ./install-fix.patch ]; 12 buildInputs = [ unzip ]; 13 makeFlags = [ "prefix=$(out)" ]; 14 preInstall = "mkdir -p $out/lib"; 15 16 meta = with stdenv.lib; { 17 homepage = "http://libjson.sourceforge.net/"; 18 description = "A JSON reader and writer"; 19 longDescription = '' 20 A JSON reader and writer which is super-efficient and 21 usually runs circles around other JSON libraries. 22 It's highly customizable to optimize for your particular project, and 23 very lightweight. For Windows, OSX, or Linux. Works in any language. 24 ''; 25 platforms = platforms.unix; 26 license = licenses.bsd2; 27 }; 28}