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