about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorAndreas Herrmann <andreash87@gmx.ch>2019-08-31 06:35:33 +0200
committerWael Nasreddine <wael.nasreddine@gmail.com>2019-08-30 22:35:33 -0600
commit1bf70fd2f178647d40784e6c6fce8431b3b5f0d8 (patch)
treeb2500d016712910cb300a8e282ea30058ffcfeba /pkgs
parentd7c7fc460300e30cbb105bf2e0d9021f368be492 (diff)
downloadnixlib-1bf70fd2f178647d40784e6c6fce8431b3b5f0d8.tar
nixlib-1bf70fd2f178647d40784e6c6fce8431b3b5f0d8.tar.gz
nixlib-1bf70fd2f178647d40784e6c6fce8431b3b5f0d8.tar.bz2
nixlib-1bf70fd2f178647d40784e6c6fce8431b3b5f0d8.tar.lz
nixlib-1bf70fd2f178647d40784e6c6fce8431b3b5f0d8.tar.xz
nixlib-1bf70fd2f178647d40784e6c6fce8431b3b5f0d8.tar.zst
nixlib-1bf70fd2f178647d40784e6c6fce8431b3b5f0d8.zip
bazel: cctools runtime dependency on darwin (#66724)
The bazel build patches paths like `/usr/bin/install_name_tool` to refer
to `${cctools}/bin/install_name_tool` instead. If the corresponding
runtime dependency is not denoted, then darwin users can encounter "file
not found" errors, e.g. when they fetch bazel from a binary cache and
don't have `cctools` in their own nix store.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/build-managers/bazel/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/bazel/default.nix b/pkgs/development/tools/build-managers/bazel/default.nix
index 1007f4df8cad..7e6b584f9668 100644
--- a/pkgs/development/tools/build-managers/bazel/default.nix
+++ b/pkgs/development/tools/build-managers/bazel/default.nix
@@ -511,6 +511,8 @@ stdenv.mkDerivation rec {
     # The templates get tar’d up into a .jar,
     # so nix can’t detect python is needed in the runtime closure
     echo "${python3}" >> $out/nix-support/depends
+  '' + lib.optionalString stdenv.isDarwin ''
+    echo "${cctools}" >> $out/nix-support/depends
   '';
 
   dontStrip = true;