diff options
author | Andreas Herrmann <andreash87@gmx.ch> | 2019-08-31 06:35:33 +0200 |
---|---|---|
committer | Wael Nasreddine <wael.nasreddine@gmail.com> | 2019-08-30 22:35:33 -0600 |
commit | 1bf70fd2f178647d40784e6c6fce8431b3b5f0d8 (patch) | |
tree | b2500d016712910cb300a8e282ea30058ffcfeba /pkgs/development/tools/build-managers/bazel/default.nix | |
parent | d7c7fc460300e30cbb105bf2e0d9021f368be492 (diff) |
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/development/tools/build-managers/bazel/default.nix')
-rw-r--r-- | pkgs/development/tools/build-managers/bazel/default.nix | 2 |
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 1007f4df8cad9..7e6b584f9668b 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; |