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: nethack-x11 package created #42766
Conversation
pkgs/top-level/all-packages.nix
Outdated
@@ -19568,6 +19568,10 @@ with pkgs; | |||
|
|||
nethack = callPackage ../games/nethack { }; | |||
|
|||
nethack-x11 = nethack.override { |
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.
Is it okay to leave this out? I much prefer to have users set up these kind of overrides in their configs. You can definitely add documentation to the Nixpkgs manual if you think it needs to be more disoverable.
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.
I don't know how correct my approach is, but I used the crawlTiles and crawl packages as a sample. Everything is done exactly the same way there.
What would you suggest to do in this case? Basically, I could make a separate nix expression for the x11 version and maintain it separately.
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.
No - I definitely think it's good to reuse the nethack expression - I just don't want it to go in all-packages.nix.
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.
nethack-x11 = callPackage ../games/nethack { x11Mode = true; };
Perhaps it would be better?
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.
I've made some changes.
If x11Mode is false, ncurses NetHack version will be built (nethack). If x11Mode is true, x11 NetHack version will be built (nethack-x11). NetHack DevTeam provide x11 version support only for Linux.
Thanks! |
If x11Mode is false, ncurses NetHack version will be built (nethack).
If x11Mode is true, x11 NetHack version will be built (nethack-x11).
NetHack DevTeam provide x11 version support only for Linux.
Motivation for this change
To play a graphical version of NetHack on NixOS.
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)/cc @abbradar