nixpkgs-suyu/pkgs/development/libraries/jsoncpp/default.nix

35 lines
790 B
Nix
Raw Normal View History

{ 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}";
version = "1.7.2";
2015-05-02 07:26:52 +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
};
configurePhase = ''
mkdir -p Build
pushd Build
2015-05-02 07:26:52 +02:00
mkdir -p $out
cmake .. -DCMAKE_INSTALL_PREFIX=$out \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release
'';
buildInputs = [ cmake python ];
2013-10-22 17:42:06 +02:00
meta = with stdenv.lib; {
2015-03-22 23:04:53 +01: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 17:42:06 +02:00
};
}