blob: 5c4c4a693df0193e620fa14493f281661c1420fc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ stdenv
, fetchgit
, cmake
, python
}:
stdenv.mkDerivation rec {
name = "jsoncpp-${version}";
version = "1.7.2";
src = fetchgit {
url = https://github.com/open-source-parsers/jsoncpp.git;
sha256 = "04w4cfmvyv52rpqhc370ln8rhlsrr515778bixhgafqbp3p4x34k";
rev = "c8054483f82afc3b4db7efe4e5dc034721649ec8";
};
configurePhase = ''
mkdir -p Build
pushd Build
mkdir -p $out
cmake .. -DCMAKE_INSTALL_PREFIX=$out \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release
'';
buildInputs = [ cmake python ];
meta = with stdenv.lib; {
homepage = https://github.com/open-source-parsers/jsoncpp;
description = "A C++ library for interacting with JSON.";
license = licenses.mit;
platforms = platforms.linux;
};
}
|