mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 11:05:14 +00:00
parent
ad3a0dd8fb
commit
b66e1808ef
32
pkgs/development/libraries/jsoncpp/default.nix
Normal file
32
pkgs/development/libraries/jsoncpp/default.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{ stdenv, fetchurl, scons}:
|
||||
|
||||
let
|
||||
basename = "jsoncpp";
|
||||
version = "0.6.0-rc2";
|
||||
pkgname = "${basename}-src-${version}.tar.gz";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${basename}-${version}";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/${basename}/${pkgname}";
|
||||
sha256 = "10xj15nziqpwc6r3yznpb49wm4jqc5wakjsmj65v087mcg8r7lfl";
|
||||
};
|
||||
|
||||
buildInputs = [ scons ];
|
||||
|
||||
buildPhase = ''
|
||||
mkdir -p $out
|
||||
scons platform=linux-gcc check
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
cp -r include $out
|
||||
cp -r libs/* $out/lib
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://jsoncpp.sourceforge.net;
|
||||
repositories.svn = svn://svn.code.sf.net/p/jsoncpp/code;
|
||||
description = "A simple API to manipulate JSON data in C++";
|
||||
};
|
||||
}
|
@ -4559,6 +4559,8 @@ let
|
||||
|
||||
json_c = callPackage ../development/libraries/json-c { };
|
||||
|
||||
jsoncpp = callPackage ../development/libraries/jsoncpp { };
|
||||
|
||||
libjson = callPackage ../development/libraries/libjson { };
|
||||
|
||||
judy = callPackage ../development/libraries/judy { };
|
||||
|
Loading…
Reference in New Issue
Block a user