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
40 lines
810 B
Nix
40 lines
810 B
Nix
{
|
||
lib,
|
||
stdenv,
|
||
runCommand,
|
||
getent,
|
||
xcbuild,
|
||
}:
|
||
|
||
# Prints information about the state of the build environment for
|
||
# assistance debugging Hydra. Feel free to add anything you would find
|
||
# useful to this.
|
||
runCommand "build-environment-info"
|
||
{
|
||
nativeBuildInputs = [ getent ] ++ lib.optionals stdenv.buildPlatform.isDarwin [ xcbuild ];
|
||
}
|
||
''
|
||
# It’s useful to get more info even if a command fails.
|
||
set +e
|
||
|
||
run() {
|
||
echoCmd : "$@"
|
||
"$@"
|
||
}
|
||
|
||
run uname -a
|
||
|
||
${lib.optionalString stdenv.buildPlatform.isDarwin ''
|
||
run env SYSTEM_VERSION_COMPAT=0 plutil -p /System/Library/CoreServices/SystemVersion.plist
|
||
''}
|
||
|
||
run id
|
||
|
||
run getent passwd "$(id -un)"
|
||
|
||
run ulimit -a
|
||
|
||
# Always fail so that this job can easily be restarted.
|
||
run exit 1
|
||
''
|