diff options
| author | 06kellyjac <dev@j-k.io> | 2025-10-16 11:26:52 +0100 |
|---|---|---|
| committer | 06kellyjac <dev@j-k.io> | 2025-11-18 10:32:36 +0000 |
| commit | f7bf8f2095c82cb9c3c558af129d06121f5c8b3a (patch) | |
| tree | 2feb7dfed91af73448021c2922c6f01304589142 /maintainers/scripts | |
| parent | maintainers/scripts/check-hydra-by-maintainer: use stdenvNoCC (diff) | |
| download | nixpkgs-f7bf8f2095c82cb9c3c558af129d06121f5c8b3a.tar.gz | |
maintainers/scripts/check-hydra-by-maintainer: use hydra-check already in path
No need to use nix-shell too
Also reuse built command for echo and run. Not using `set -x` so
on exit/failure it doesn't continue to print excessive output.
Diffstat (limited to 'maintainers/scripts')
| -rw-r--r-- | maintainers/scripts/check-hydra-by-maintainer.nix | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/maintainers/scripts/check-hydra-by-maintainer.nix b/maintainers/scripts/check-hydra-by-maintainer.nix index fb57a31a5197..5107220820e5 100644 --- a/maintainers/scripts/check-hydra-by-maintainer.nix +++ b/maintainers/scripts/check-hydra-by-maintainer.nix @@ -58,11 +58,14 @@ pkgs.stdenvNoCC.mkDerivation { echo "----------------------------------------------------------------" exit 1 ''; - shellHook = '' - unset shellHook # do not contaminate nested shells - echo "Please stand by" - echo nix-shell -p hydra-check --run "hydra-check ${builtins.concatStringsSep " " packages}" - nix-shell -p hydra-check --run "hydra-check ${builtins.concatStringsSep " " packages}" - exit $? - ''; + shellHook = + let + command = "hydra-check ${lib.escapeShellArgs packages}"; + in + '' + echo "Please stand by" + echo "${command}" + ${command} + exit $? + ''; } |
