depot/third_party/nixpkgs/pkgs/development/libraries/libjson/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

28 lines
940 B
Nix

{ lib, stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
pname = "libjson";
version = "7.6.1";
src = fetchurl {
url = "mirror://sourceforge/libjson/libjson_${version}.zip";
sha256 = "0xkk5qc7kjcdwz9l04kmiz1nhmi7iszl3k165phf53h3a4wpl9h7";
};
patches = [ ./install-fix.patch ];
nativeBuildInputs = [ unzip ];
makeFlags = [ "prefix=$(out)" ];
env.NIX_CFLAGS_COMPILE = toString [ "-std=c++11" ];
preInstall = "mkdir -p $out/lib";
meta = with lib; {
homepage = "http://libjson.sourceforge.net/";
description = "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;
};
}