Files
nixpkgs/pkgs/by-name/br/breakpointHook/breakpoint-hook.sh
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

19 lines
630 B
Bash

breakpointHook() {
local red='\033[0;31m'
local cyan='\033[0;36m'
local green='\033[0;32m'
local no_color='\033[0m'
# provide the user with an interactive shell for better experience
export bashInteractive="@bashInteractive@"
dumpVars
local id
id="$(shuf -i 999999-9999999 -n1)"
echo -e "${red}build for ${cyan}${name:-unknown}${red} failed in ${curPhase:-unknown} with exit code ${exitCode:-unknown}${no_color}"
echo -e "${green}To attach, run the following command:${no_color}"
echo -e "${green} sudo @attach@ $id${no_color}"
sleep "$id"
}
failureHooks+=(breakpointHook)