diff options
Diffstat (limited to 'pkgs/development/libraries/openjpeg/generic.nix')
-rw-r--r-- | pkgs/development/libraries/openjpeg/generic.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/libraries/openjpeg/generic.nix b/pkgs/development/libraries/openjpeg/generic.nix index 4ffcd62f982be..3fae65d9bd298 100644 --- a/pkgs/development/libraries/openjpeg/generic.nix +++ b/pkgs/development/libraries/openjpeg/generic.nix @@ -42,6 +42,8 @@ stdenv.mkDerivation rec { (mkFlag jp3dSupport "BUILD_JP3D") (mkFlag thirdPartySupport "BUILD_THIRDPARTY") (mkFlag testsSupport "BUILD_TESTING") + ] ++ stdenv.lib.optionals stdenv.isDarwin + [ "-DCMAKE_INSTALL_NAME_DIR=\${CMAKE_INSTALL_PREFIX}/lib" ]; nativebuildInputs = [ pkgconfig ]; |