git.iko.soy/typeable/nixpkgs
on master help sign in
jsoncpp: fix build on darwin

Also, fixed maintainer attrib

commit67dcb6aa4c7dae60462444c2d69747570ffa948e authorCarles Pagès <page@ruiec.cat> dateFri 3 Feb 2017, 17:32 (10 years ago) parentba596c9
1 file changed+4−2
pkgs/development/libraries/jsoncpp/default.nix+4−2
pkgs/development/libraries/jsoncpp/default.nix+4−2
@@ -25,7 +25,9 @@ stdenv.mkDerivation rec {
2525
2626 # Hack to be able to run the test, broken because we use
2727 # CMAKE_SKIP_BUILD_RPATH to avoid cmake resetting rpath on install
28− preBuild = ''
28+ preBuild = if stdenv.isDarwin then ''
29+ export DYLD_LIBRARY_PATH="`pwd`/src/lib_json:$DYLD_LIBRARY_PATH"
30+ '' else ''
2931 export LD_LIBRARY_PATH="`pwd`/src/lib_json:$LD_LIBRARY_PATH"
3032 '';
3133
@@ -40,7 +42,7 @@ stdenv.mkDerivation rec {
4042 inherit version;
4143 homepage = https://github.com/open-source-parsers/jsoncpp;
4244 description = "A C++ library for interacting with JSON.";
43− maintainers = with maintainers; [ ttuegel page ];
45+ maintainers = with maintainers; [ ttuegel cpages ];
4446 license = licenses.mit;
4547 platforms = platforms.all;
4648 };