bazel_4: dont propagate absl-py (#153779)

otherwise bazel pollutes PYTHONPATH and if it's just necessary to generate the fish completion then we dont need to propagate it
This commit is contained in:
Matthieu Coudron 2022-01-07 07:43:10 +01:00 committed by GitHub
parent 06c274d7de
commit c1220ff9b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -536,6 +536,7 @@ stdenv.mkDerivation rec {
unzip
which
zip
python3.pkgs.absl-py # Needed to build fish completion
] ++ lib.optionals (stdenv.isDarwin) [ cctools libcxx CoreFoundation CoreServices Foundation ];
# Bazel makes extensive use of symlinks in the WORKSPACE.
@ -549,8 +550,6 @@ stdenv.mkDerivation rec {
shopt -s dotglob extglob
mv !(bazel_src) bazel_src
'';
# Needed to build fish completion
propagatedBuildInputs = [ python3.pkgs.absl-py ];
buildPhase = ''
runHook preBuild