base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / libjson / package.nix
blobdd68957616b6f74044733f90b97f16e58826c079
1 { lib, stdenv, fetchurl, unzip }:
3 stdenv.mkDerivation rec {
4   pname = "libjson";
5   version = "7.6.1";
6   src = fetchurl {
7     url = "mirror://sourceforge/libjson/libjson_${version}.zip";
8     sha256 = "0xkk5qc7kjcdwz9l04kmiz1nhmi7iszl3k165phf53h3a4wpl9h7";
9   };
10   patches = [ ./install-fix.patch ];
11   nativeBuildInputs = [ unzip ];
12   makeFlags = [ "prefix=$(out)" ];
13   env.NIX_CFLAGS_COMPILE = toString [ "-std=c++11" ];
14   preInstall = "mkdir -p $out/lib";
16   meta = with lib; {
17     homepage = "http://libjson.sourceforge.net/";
18     description = "JSON reader and writer";
19     longDescription = ''
20       A JSON reader and writer which is super-efficient and
21       usually runs circles around other JSON libraries.
22       It's highly customizable to optimize for your particular project, and
23       very lightweight. For Windows, OSX, or Linux. Works in any language.
24     '';
25     platforms = platforms.unix;
26     license = licenses.bsd2;
27   };