3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/jsoncpp/default.nix

35 lines
790 B
Nix
Raw Normal View History

{ stdenv
, fetchgit
, cmake
, python
}:
2013-10-22 16:42:06 +01:00
stdenv.mkDerivation rec {
2015-05-02 06:26:52 +01:00
name = "jsoncpp-${version}";
version = "1.7.2";
2015-05-02 06:26:52 +01:00
src = fetchgit {
url = https://github.com/open-source-parsers/jsoncpp.git;
sha256 = "04w4cfmvyv52rpqhc370ln8rhlsrr515778bixhgafqbp3p4x34k";
rev = "c8054483f82afc3b4db7efe4e5dc034721649ec8";
2013-10-22 16:42:06 +01:00
};
configurePhase = ''
mkdir -p Build
pushd Build
2015-05-02 06:26:52 +01:00
mkdir -p $out
cmake .. -DCMAKE_INSTALL_PREFIX=$out \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release
'';
buildInputs = [ cmake python ];
2013-10-22 16:42:06 +01:00
meta = with stdenv.lib; {
2015-03-22 22:04:53 +00:00
homepage = https://github.com/open-source-parsers/jsoncpp;
description = "A C++ library for interacting with JSON.";
license = licenses.mit;
platforms = platforms.linux;
2013-10-22 16:42:06 +01:00
};
}