jsoncpp: fix build on darwin

Also, fixed maintainer attrib
This commit is contained in:
Carles Pagès 2017-02-03 17:32:33 +01:00
parent ba596c9ce9
commit 67dcb6aa4c
1 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,9 @@ stdenv.mkDerivation rec {
# Hack to be able to run the test, broken because we use # Hack to be able to run the test, broken because we use
# CMAKE_SKIP_BUILD_RPATH to avoid cmake resetting rpath on install # CMAKE_SKIP_BUILD_RPATH to avoid cmake resetting rpath on install
preBuild = '' preBuild = if stdenv.isDarwin then ''
export DYLD_LIBRARY_PATH="`pwd`/src/lib_json:$DYLD_LIBRARY_PATH"
'' else ''
export LD_LIBRARY_PATH="`pwd`/src/lib_json:$LD_LIBRARY_PATH" export LD_LIBRARY_PATH="`pwd`/src/lib_json:$LD_LIBRARY_PATH"
''; '';
@ -40,7 +42,7 @@ stdenv.mkDerivation rec {
inherit version; inherit version;
homepage = https://github.com/open-source-parsers/jsoncpp; homepage = https://github.com/open-source-parsers/jsoncpp;
description = "A C++ library for interacting with JSON."; description = "A C++ library for interacting with JSON.";
maintainers = with maintainers; [ ttuegel page ]; maintainers = with maintainers; [ ttuegel cpages ];
license = licenses.mit; license = licenses.mit;
platforms = platforms.all; platforms = platforms.all;
}; };