2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip }:
|
2013-08-15 13:23:00 +00:00
|
|
|
let
|
|
|
|
version = "7.6.1";
|
2019-08-13 21:52:01 +00:00
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "libjson";
|
|
|
|
inherit version;
|
2011-11-01 17:07:14 +00:00
|
|
|
src = fetchurl {
|
2013-08-15 13:23:00 +00:00
|
|
|
url = "mirror://sourceforge/libjson/libjson_${version}.zip";
|
|
|
|
sha256 = "0xkk5qc7kjcdwz9l04kmiz1nhmi7iszl3k165phf53h3a4wpl9h7";
|
2011-11-01 17:07:14 +00:00
|
|
|
};
|
2013-08-15 13:23:00 +00:00
|
|
|
patches = [ ./install-fix.patch ];
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2013-08-15 13:23:00 +00:00
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
|
|
|
preInstall = "mkdir -p $out/lib";
|
2018-10-18 18:48:47 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://libjson.sourceforge.net/";
|
2011-11-01 17:07:14 +00:00
|
|
|
description = "A JSON reader and writer";
|
2018-10-18 18:48:47 +00:00
|
|
|
longDescription = ''
|
|
|
|
A JSON reader and writer which is super-efficient 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.
|
|
|
|
'';
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.bsd2;
|
2011-11-01 17:07:14 +00:00
|
|
|
};
|
|
|
|
}
|