-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
steam: Added extraEmulators option to chroot env. #26190
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
Conversation
@izuk, thanks for your PR! By analyzing the history of the files in this pull request, we identified @abbradar, @hrdinka and @the-kenny to be potential reviewers. |
why |
|
ping |
@FRidh to be honest I also didn't fully get what you meant by this comment -- perhaps to mention somewhere about existence of this option? |
An |
@FRidh Ah, got it! I think we can either make two arguments ( |
PTAL; I've changed it to extraPkgs and added a comment. |
pkgs/games/steam/chrootenv.nix
Outdated
@@ -2,6 +2,7 @@ | |||
, steam-runtime, steam-runtime-i686 ? null | |||
, withJava ? false | |||
, withPrimus ? false | |||
, extraPkgs ? [ ] # extra packages to add to targetPkgs and multiPkgs |
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.
Please make this a function:
extraPkgs ? pkgs: []
Also, they actually would be added only to targetPkgs
.
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.
Done (I think).
pkgs/games/steam/chrootenv.nix
Outdated
@@ -37,7 +38,8 @@ let | |||
# Zoneinfo | |||
etc-zoneinfo | |||
] ++ lib.optional withJava jdk | |||
++ lib.optional withPrimus primus2; | |||
++ lib.optional withPrimus primus2 | |||
++ extraPkgs; |
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.
And here pass pkgs
to the function: extraPkgs pkgs
.
This way you will use the same package set buildFHSEnv
passes to the function above.
Thanks and sorry for taking a long time! |
No problem. Now I can get back to playing Tie Fighter. |
Motivation for this change
I like to use steam to run all my games, including ones that work through dosbox. This lets me include dosbox in the chroot environment, by doing this in config.nix:
steam = pkgs.steam.override { extraEmulators = [ pkgs.dosbox ]; };
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)