-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release-lib: build packages without
meta.platforms
on all platforms (…
- Loading branch information
Showing
7 changed files
with
63 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,39 @@ | ||
{ runCommand }: | ||
{ | ||
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" { } '' | ||
ulimit -a | ||
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 | ||
# Always fail so that this job can easily be restarted. | ||
exit 1 | ||
'' | ||
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 | ||
'' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters