From 1bf70fd2f178647d40784e6c6fce8431b3b5f0d8 Mon Sep 17 00:00:00 2001 From: Andreas Herrmann Date: Sat, 31 Aug 2019 06:35:33 +0200 Subject: 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. --- pkgs/development/tools/build-managers/bazel/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs') 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; -- cgit 1.4.1