summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-01-07 09:46:58 +0100
committerGitHub <noreply@github.com>2018-01-07 09:46:58 +0100
commit84f973601404331e8670ecdc6fc22aa8c6b5b2d2 (patch)
tree8b339e24323360ed9a799ec7d9d5a9694322450e
parente66a5f886293c649e4ce01170b24922abb3b468b (diff)
parentdc2ae3aef603a33f83d6c560c39574df56ba8856 (diff)
downloadnixlib-84f973601404331e8670ecdc6fc22aa8c6b5b2d2.tar
nixlib-84f973601404331e8670ecdc6fc22aa8c6b5b2d2.tar.gz
nixlib-84f973601404331e8670ecdc6fc22aa8c6b5b2d2.tar.bz2
nixlib-84f973601404331e8670ecdc6fc22aa8c6b5b2d2.tar.lz
nixlib-84f973601404331e8670ecdc6fc22aa8c6b5b2d2.tar.xz
nixlib-84f973601404331e8670ecdc6fc22aa8c6b5b2d2.tar.zst
nixlib-84f973601404331e8670ecdc6fc22aa8c6b5b2d2.zip
Merge pull request #33382 from LnL7/darwin-cmake-outputs
cmake: fix hook for multiple outputs on darwin
-rwxr-xr-xpkgs/development/tools/build-managers/cmake/setup-hook.sh2
-rw-r--r--pkgs/tools/compression/brotli/default.nix4
2 files changed, 1 insertions, 5 deletions
diff --git a/pkgs/development/tools/build-managers/cmake/setup-hook.sh b/pkgs/development/tools/build-managers/cmake/setup-hook.sh
index a92d54b3f144..a0f1cf00814c 100755
--- a/pkgs/development/tools/build-managers/cmake/setup-hook.sh
+++ b/pkgs/development/tools/build-managers/cmake/setup-hook.sh
@@ -43,7 +43,7 @@ cmakeConfigurePhase() {
     # libraries are in a system path or in the same directory as the
     # executable. This flag makes the shared library accessible from its
     # nix/store directory.
-    cmakeFlags="-DCMAKE_INSTALL_NAME_DIR=$prefix/lib $cmakeFlags"
+    cmakeFlags="-DCMAKE_INSTALL_NAME_DIR=${!outputLib}/lib $cmakeFlags"
     cmakeFlags="-DCMAKE_INSTALL_LIBDIR=${!outputLib}/lib $cmakeFlags"
     cmakeFlags="-DCMAKE_INSTALL_INCLUDEDIR=${!outputDev}/include $cmakeFlags"
 
diff --git a/pkgs/tools/compression/brotli/default.nix b/pkgs/tools/compression/brotli/default.nix
index f4fbb3685354..9a35013e3814 100644
--- a/pkgs/tools/compression/brotli/default.nix
+++ b/pkgs/tools/compression/brotli/default.nix
@@ -21,10 +21,6 @@ stdenv.mkDerivation rec {
   # and the wonderful bazel BUILD file is already there (yay case-insensitivity?)
   prePatch = "rm BUILD";
 
-  preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
-    cmakeFlagsArray+=("-DCMAKE_INSTALL_NAME_DIR=$lib/lib")
-  '';
-
   meta = with stdenv.lib; {
     inherit (src.meta) homepage;