From 02b2f62d659165cfdce4ba214e1a97088744c4bc Mon Sep 17 00:00:00 2001 From: Andy Scott Date: Mon, 5 Nov 2018 10:42:40 -0800 Subject: [PATCH] bazel: support tools/bazel workspace bootstrap scripts 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). --- pkgs/development/tools/build-managers/bazel/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/build-managers/bazel/default.nix b/pkgs/development/tools/build-managers/bazel/default.nix index 19836b412c04..dcb9f5934368 100644 --- a/pkgs/development/tools/build-managers/bazel/default.nix +++ b/pkgs/development/tools/build-managers/bazel/default.nix @@ -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