2011-11-01 18:07:14 +01:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
2013-08-15 15:23:00 +02:00
|
|
|
let
|
|
|
|
version = "7.6.1";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "libjson-${version}";
|
2011-11-01 18:07:14 +01:00
|
|
|
src = fetchurl {
|
2013-08-15 15:23:00 +02:00
|
|
|
url = "mirror://sourceforge/libjson/libjson_${version}.zip";
|
|
|
|
sha256 = "0xkk5qc7kjcdwz9l04kmiz1nhmi7iszl3k165phf53h3a4wpl9h7";
|
2011-11-01 18:07:14 +01:00
|
|
|
};
|
2013-08-15 15:23:00 +02:00
|
|
|
patches = [ ./install-fix.patch ];
|
2011-11-01 18:07:14 +01:00
|
|
|
buildInputs = [ unzip ];
|
2013-08-15 15:23:00 +02:00
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
|
|
|
preInstall = "mkdir -p $out/lib";
|
2011-11-01 18:07:14 +01:00
|
|
|
meta = {
|
|
|
|
homepage = "http://libjson.sourceforge.net/";
|
|
|
|
description = "A JSON reader and writer";
|
|
|
|
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.";
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2011-11-01 18:07:14 +01:00
|
|
|
};
|
|
|
|
}
|