summaryrefslogtreecommitdiff
path: root/maintainers/scripts
diff options
context:
space:
mode:
author06kellyjac <dev@j-k.io>2025-10-16 11:26:52 +0100
committer06kellyjac <dev@j-k.io>2025-11-18 10:32:36 +0000
commitf7bf8f2095c82cb9c3c558af129d06121f5c8b3a (patch)
tree2feb7dfed91af73448021c2922c6f01304589142 /maintainers/scripts
parentmaintainers/scripts/check-hydra-by-maintainer: use stdenvNoCC (diff)
downloadnixpkgs-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.nix17
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 $?
+ '';
}