bazel: shebang-test: pass bazel dir in Nix
This commit is contained in:
parent
7429acdea1
commit
d132d47199
@ -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; };
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user