diff --git a/pkgs/development/tools/build-managers/bazel/default.nix b/pkgs/development/tools/build-managers/bazel/default.nix index 352b79f21b6f..c0ff09d09767 100644 --- a/pkgs/development/tools/build-managers/bazel/default.nix +++ b/pkgs/development/tools/build-managers/bazel/default.nix @@ -208,7 +208,6 @@ stdenv.mkDerivation rec { # about why to create a subdir for the workspace. cp -r ${workspaceDir} wd && chmod u+w wd && cd wd - BAZEL_EXTRACTED=${be.install_dir} ${bazelScript} touch $out @@ -224,7 +223,7 @@ stdenv.mkDerivation rec { }; in { - shebang = callPackage ./shebang-test.nix { inherit runLocal bazelTest distDir; }; + shebang = callPackage ./shebang-test.nix { inherit runLocal extracted bazelTest distDir; }; bashTools = callPackage ./bash-tools-test.nix { inherit runLocal bazelTest distDir; }; cpp = callPackage ./cpp-test.nix { inherit runLocal bazelTest bazel-examples distDir; }; java = callPackage ./java-test.nix { inherit runLocal bazelTest bazel-examples distDir; }; diff --git a/pkgs/development/tools/build-managers/bazel/shebang-test.nix b/pkgs/development/tools/build-managers/bazel/shebang-test.nix index 98ec9a67c156..8610b036f2cc 100644 --- a/pkgs/development/tools/build-managers/bazel/shebang-test.nix +++ b/pkgs/development/tools/build-managers/bazel/shebang-test.nix @@ -2,6 +2,7 @@ bazel , bazelTest , distDir +, extracted , runLocal , unzip }: @@ -26,6 +27,7 @@ let { grep -Re '#!/usr/bin' $dir && FAIL=1; } || true { grep -Re '#![^[:space:]]*/bin/env python' $dir && FAIL=1; } || true } + BAZEL_EXTRACTED=${extracted bazel}/install check_shebangs $BAZEL_EXTRACTED while IFS= read -r -d "" zip; do unzipped="./$zip/UNPACKED"