bazel_5: Explicitly add a dependency on bazel-rc

Co-authored-by: Uri Baghin <uri@canva.com>
This commit is contained in:
r2r-dev 2022-01-25 12:23:48 +01:00 committed by GitHub
parent e1a28002a3
commit ed55d1f607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -655,6 +655,10 @@ stdenv.mkDerivation rec {
postFixup = ''
mkdir -p $out/nix-support
echo "${defaultShellPath}" >> $out/nix-support/depends
# The string literal specifying the path to the bazel-rc file is sometimes
# stored non-contiguously in the binary due to gcc optimisations, which leads
# Nix to miss the hash when scanning for dependencies
echo "${bazelRC}" >> $out/nix-support/depends
'' + lib.optionalString stdenv.isDarwin ''
echo "${cctools}" >> $out/nix-support/depends
'';