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