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