diff options
author | Carles Pagès <page@cubata.homelinux.net> | 2013-10-22 17:42:06 +0200 |
---|---|---|
committer | Evgeny Egorochkin <phreedom@yandex.ru> | 2013-10-24 11:12:31 +0300 |
commit | b66e1808ef44142fc4c65dd6c6d58904ce93f49f (patch) | |
tree | 7725013dcd34ba5f5e445a9b2e82a520b6f6abc2 /pkgs/development/libraries/jsoncpp | |
parent | ad3a0dd8fb5ada5313c8ccfb2b99e54b46d008f8 (diff) |
Add JsonCpp v0.6.0
Close #1112.
Diffstat (limited to 'pkgs/development/libraries/jsoncpp')
-rw-r--r-- | pkgs/development/libraries/jsoncpp/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/libraries/jsoncpp/default.nix b/pkgs/development/libraries/jsoncpp/default.nix new file mode 100644 index 000000000000..b1aa03991bd9 --- /dev/null +++ b/pkgs/development/libraries/jsoncpp/default.nix @@ -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++"; + }; +} |