2016-06-28 07:41:24 +01:00
|
|
|
{ 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}";
|
2016-06-28 07:41:24 +01:00
|
|
|
version = "1.7.2";
|
2015-05-02 06:26:52 +01:00
|
|
|
|
2016-06-28 07:41:24 +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
|
|
|
};
|
|
|
|
|
2016-06-28 07:41:24 +01:00
|
|
|
configurePhase = ''
|
|
|
|
mkdir -p Build
|
|
|
|
pushd Build
|
2015-05-02 06:26:52 +01:00
|
|
|
|
2016-06-28 07:41:24 +01:00
|
|
|
mkdir -p $out
|
|
|
|
cmake .. -DCMAKE_INSTALL_PREFIX=$out \
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
'';
|
2016-05-31 15:59:41 +01:00
|
|
|
|
2016-06-28 07:41:24 +01:00
|
|
|
buildInputs = [ cmake python ];
|
2013-10-22 16:42:06 +01:00
|
|
|
|
2016-06-28 07:41:24 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-03-22 22:04:53 +00:00
|
|
|
homepage = https://github.com/open-source-parsers/jsoncpp;
|
2016-06-28 07:41:24 +01:00
|
|
|
description = "A C++ library for interacting with JSON.";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2013-10-22 16:42:06 +01:00
|
|
|
};
|
|
|
|
}
|