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.
This commit is contained in:
parent
d7c7fc4603
commit
1bf70fd2f1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user