New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nethack cross #47023
Nethack cross #47023
Conversation
Unless qtMode is enabled :)
also parallel building
@GrahamcOfBorg build pkgsCross.raspberryPi.nethack pkgsCross.aarch64-multiplatform.nethack nethack nethack-qt |
Failure on x86_64-darwin (full log) Attempted: nethack, nethack-qt The following builds were skipped because they don't evaluate on x86_64-darwin: pkgsCross.raspberryPi.nethack, pkgsCross.aarch64-multiplatform.nethack Partial log (click to expand)
|
pkgs/games/nethack/default.nix
Outdated
sed \ | ||
-e 's,^QTDIR *=.*,QTDIR=${qt5.qtbase.dev},' \ | ||
-e 's,CFLAGS.*QtGui.*,CFLAGS += `pkg-config Qt5Gui --cflags`,' \ | ||
-e 's,CFLAGS+=-DCOMPRESS.*,CFLAGS+=-DCOMPRESS=\\"${gzip}/bin/gzip\\" \\\ | ||
-DCOMPRESS_EXTENSION=\\".gz\\",' \ | ||
-i sys/unix/hints/linux-qt4 | ||
''} | ||
${lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' | ||
${buildPackages.perl}/bin/perl -p \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment what you do here?
Failure on x86_64-linux (full log) Attempted: pkgsCross.raspberryPi.nethack, pkgsCross.aarch64-multiplatform.nethack, nethack, nethack-qt Partial log (click to expand)
|
@GrahamcOfBorg build nethack-qt |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@GrahamcOfBorg build nethack-qt nethack-x11 nethack |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@GrahamcOfBorg build pkgsCross.raspberryPi.nethack pkgsCross.aarch64-multiplatform.nethack |
This comment has been minimized.
This comment has been minimized.
Success on x86_64-darwin (full log) Attempted: nethack Partial log (click to expand)
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I think this is a success now? >.< so many interleaved borg notifications |
@lheckemann maybe re-trigger the build now, I hid all the comments. |
@GrahamcOfBorg build pkgsCross.raspberryPi.nethack pkgsCross.raspberryPi.nethack-x11 nethack-x11 nethack-qt nethack |
Failure on x86_64-linux (full log) Attempted: pkgsCross.raspberryPi.nethack, pkgsCross.raspberryPi.nethack-x11, nethack-x11, nethack-qt, nethack Partial log (click to expand)
|
Failure on aarch64-linux (full log) Attempted: pkgsCross.raspberryPi.nethack, pkgsCross.raspberryPi.nethack-x11, nethack-x11, nethack-qt, nethack Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: pkgsCross.raspberryPi.nethack, pkgsCross.raspberryPi.nethack-x11, nethack-qt, nethack The following builds were skipped because they don't evaluate on x86_64-darwin: nethack-x11 Partial log (click to expand)
|
OK, nethack-x11 fails to cross-compile because of failed dependencies, so let's try that again without x11. |
@GrahamcOfBorg build pkgsCross.raspberryPi.nethack nethack-x11 nethack-qt nethack |
Failure on x86_64-darwin (full log) Attempted: pkgsCross.raspberryPi.nethack, nethack-qt, nethack The following builds were skipped because they don't evaluate on x86_64-darwin: nethack-x11 Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: pkgsCross.raspberryPi.nethack, nethack-x11, nethack-qt, nethack Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: pkgsCross.raspberryPi.nethack, nethack-x11, nethack-qt, nethack Partial log (click to expand)
|
The darwin failure is a problem in cross-building stdenv as well as an issue with nethack-qt that doesn't seem to be introduced by this, so we should be good to merge! |
Motivation for this change
Allow cross-compiling nethack for a wider range of dungeon-crawling fun.
cc maintainer @abbradar
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)Tested by building
pkgsCross.aarch64-multiplatform.nethack
on an x86_64 machine, copying the result to the community box, and running it.