mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
83fd63995a
jsoncpp: 1.6.5 -> 1.7.2 libjson_rpc_cpp: 0.2.1 -> 0.6.0 argtable: init at 3.0.1 libcpuid: init at 0.2.2
35 lines
790 B
Nix
35 lines
790 B
Nix
{ 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;
|
|
};
|
|
}
|