summary refs log tree commit diff
path: root/pkgs/development/libraries/libjson/default.nix
blob: 9106c19747164ef4ab2078395d1f1fc4097ac6d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ 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)" ];
  preInstall = "mkdir -p $out/lib";

  meta = with 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;
  };
}