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 meta = {
15 homepage = "http://libjson.sourceforge.net/";
16 description = "A JSON reader and writer";
17 longDescription = "A JSON reader and writer which is super-effiecient and usually runs circles around other JSON libraries. It's highly customizable to optimize for your particular project, and very lightweight. For Windows, OSX, or Linux. Works in any language.";
18 };
19}