about summary refs log tree commit diff
path: root/pkgs/development/libraries/jsoncpp
diff options
context:
space:
mode:
authorCarles Pagès <page@ruiec.cat>2017-02-03 17:32:33 +0100
committerCarles Pagès <page@ruiec.cat>2017-02-04 19:05:12 +0100
commit67dcb6aa4c7dae60462444c2d69747570ffa948e (patch)
tree160bba4e3dbf118a5d4ff57033a8a21f2836b35b /pkgs/development/libraries/jsoncpp
parentba596c9ce93691edc0e2e31924c75138ed671506 (diff)
downloadnixlib-67dcb6aa4c7dae60462444c2d69747570ffa948e.tar
nixlib-67dcb6aa4c7dae60462444c2d69747570ffa948e.tar.gz
nixlib-67dcb6aa4c7dae60462444c2d69747570ffa948e.tar.bz2
nixlib-67dcb6aa4c7dae60462444c2d69747570ffa948e.tar.lz
nixlib-67dcb6aa4c7dae60462444c2d69747570ffa948e.tar.xz
nixlib-67dcb6aa4c7dae60462444c2d69747570ffa948e.tar.zst
nixlib-67dcb6aa4c7dae60462444c2d69747570ffa948e.zip
jsoncpp: fix build on darwin
Also, fixed maintainer attrib
Diffstat (limited to 'pkgs/development/libraries/jsoncpp')
-rw-r--r--pkgs/development/libraries/jsoncpp/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/libraries/jsoncpp/default.nix b/pkgs/development/libraries/jsoncpp/default.nix
index 62e5e7133b47..18ea6370634d 100644
--- a/pkgs/development/libraries/jsoncpp/default.nix
+++ b/pkgs/development/libraries/jsoncpp/default.nix
@@ -25,7 +25,9 @@ stdenv.mkDerivation rec {
 
   # Hack to be able to run the test, broken because we use
   # 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"
   '';
 
@@ -40,7 +42,7 @@ stdenv.mkDerivation rec {
     inherit version;
     homepage = https://github.com/open-source-parsers/jsoncpp;
     description = "A C++ library for interacting with JSON.";
-    maintainers = with maintainers; [ ttuegel page ];
+    maintainers = with maintainers; [ ttuegel cpages ];
     license = licenses.mit;
     platforms = platforms.all;
   };