Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
bazel: support tools/bazel workspace bootstrap scripts
Browse files Browse the repository at this point in the history
Bazel supports per-workspace bootstrap scripts at $WORKSPACE_ROOT/
tools/bazel. This adds support for this behavior, which is needed
by many Bazel projects (OSS and private).
  • Loading branch information
andyscott authored and Profpatsch committed Nov 8, 2018
1 parent 9c0deca commit 02b2f62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/development/tools/build-managers/bazel/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ stdenv.mkDerivation rec {

installPhase = ''
mkdir -p $out/bin
mv output/bazel $out/bin
cp scripts/packages/bazel.sh $out/bin/bazel
mv output/bazel $out/bin/bazel-real
wrapProgram "$out/bin/bazel" --set JAVA_HOME "${runJdk}"
mkdir -p $out/share/bash-completion/completions $out/share/zsh/site-functions
mv output/bazel-complete.bash $out/share/bash-completion/completions/bazel
Expand Down

0 comments on commit 02b2f62

Please sign in to comment.