mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
bazel: shebang-test: pass bazel dir in Nix
This commit is contained in:
parent
7429acdea1
commit
d132d47199
2 changed files with 3 additions and 2 deletions
|
@ -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 a new issue