nixpkgs/pkgs/development/libraries/libjson/default.nix

29 lines
905 B
Nix
Raw Normal View History

{ stdenv, fetchurl, unzip }:
let
version = "7.6.1";
2019-08-13 22:52:01 +01:00
in stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "libjson";
inherit version;
src = fetchurl {
url = "mirror://sourceforge/libjson/libjson_${version}.zip";
sha256 = "0xkk5qc7kjcdwz9l04kmiz1nhmi7iszl3k165phf53h3a4wpl9h7";
};
patches = [ ./install-fix.patch ];
buildInputs = [ unzip ];
makeFlags = [ "prefix=$(out)" ];
preInstall = "mkdir -p $out/lib";
meta = with stdenv.lib; {
homepage = "http://libjson.sourceforge.net/";
description = "A JSON reader and writer";
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;
};
}