bazel: substitute the perl path for bash completions
This commit is contained in:
parent
c53e004257
commit
ec3c3c824e
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, lib, fetchurl, runCommand, makeWrapper
|
{ stdenv, lib, fetchurl, runCommand, makeWrapper
|
||||||
, jdk, zip, unzip, bash, writeCBin, coreutils
|
, jdk, zip, unzip, bash, writeCBin, coreutils
|
||||||
, which, python, gnused, gnugrep, findutils
|
, which, python, perl, gnused, gnugrep, findutils
|
||||||
# Always assume all markers valid (don't redownload dependencies).
|
# Always assume all markers valid (don't redownload dependencies).
|
||||||
# Also, don't clean up environment variables.
|
# Also, don't clean up environment variables.
|
||||||
, enableNixHacks ? false
|
, enableNixHacks ? false
|
||||||
@ -139,6 +139,11 @@ stdenv.mkDerivation rec {
|
|||||||
cat tools/bash/runfiles/runfiles.bash >> runfiles.bash.tmp
|
cat tools/bash/runfiles/runfiles.bash >> runfiles.bash.tmp
|
||||||
mv runfiles.bash.tmp tools/bash/runfiles/runfiles.bash
|
mv runfiles.bash.tmp tools/bash/runfiles/runfiles.bash
|
||||||
|
|
||||||
|
# the bash completion requires perl
|
||||||
|
# https://github.com/bazelbuild/bazel/issues/5943
|
||||||
|
substituteInPlace scripts/bazel-complete-template.bash \
|
||||||
|
--replace "perl" "${perl}/bin/perl"
|
||||||
|
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
'';
|
'';
|
||||||
in lib.optionalString stdenv.hostPlatform.isDarwin darwinPatches
|
in lib.optionalString stdenv.hostPlatform.isDarwin darwinPatches
|
||||||
|
Loading…
Reference in New Issue
Block a user