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:
Andreas Herrmann 2019-08-31 06:35:33 +02:00 committed by Wael Nasreddine
parent d7c7fc4603
commit 1bf70fd2f1

View File

@ -511,6 +511,8 @@ stdenv.mkDerivation rec {
# The templates get tard up into a .jar,
# so nix cant 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;