bazel: patch //tools/bash/runfiles/runfiles.bash to include defaultShellPath in PATH
closes #43955
This commit is contained in:
parent
b76d75f1ac
commit
9c5b7cc5d1
@ -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 .
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user