bazel: patch //tools/bash/runfiles/runfiles.bash to include defaultShellPath in PATH

closes #43955
This commit is contained in:
Wael M. Nasreddine 2018-07-24 22:10:24 -07:00 committed by Profpatsch
parent b76d75f1ac
commit 9c5b7cc5d1

View File

@ -132,6 +132,11 @@ stdenv.mkDerivation rec {
src/main/java/com/google/devtools/build/lib/bazel/rules/BazelRuleClassProvider.java \ src/main/java/com/google/devtools/build/lib/bazel/rules/BazelRuleClassProvider.java \
--replace /bin:/usr/bin ${defaultShellPath} --replace /bin:/usr/bin ${defaultShellPath}
# append the PATH with defaultShellPath in tools/bash/runfiles/runfiles.bash
echo "PATH=$PATH:${defaultShellPath}" >> runfiles.bash.tmp
cat tools/bash/runfiles/runfiles.bash >> runfiles.bash.tmp
mv runfiles.bash.tmp tools/bash/runfiles/runfiles.bash
patchShebangs . patchShebangs .
''; '';