-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
update umu-launcher: add attrs extraLibraries
& extraPkgs
#375423
Conversation
f091d48
to
ec1aa90
Compare
This comment was marked as resolved.
This comment was marked as resolved.
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 issues from me
I did, twice, on the original PR. Both times it was ignored, so I see no point, but let's do it anyway then. This makes sense for game launchers, because games may require arbitrary libraries to work. But that isn't the case for Windows games, since every dependency is either bundled in wine, or can only be installed in the wine prefix imperatively. Now considering that, and the fact that umu-launcher can only launch Windows games, we get that we wouldn't normally need extra packages in the FHS env. If for some reason we do anyway, then that can be added as a |
Sometimes it's easier to have these discussions on dedicated issues/PRs (like this one). My interpretation of this thread wasn't that it was ignored, but rather that discussion was postponed until after that PR was done.
Makes sense, sure.
However, from a pragmatic perspective, if we occasionally need extra packages anyway, why not make it easier for users to specify them? I don't see any downsides to having the code, even if it is only occasionally useful.
Sure, if there's well known common work-arounds they could be added as |
This is the exact reason |
Nvidia can't be added as a withSomething flag because it has to be the library from your driver version. The only way to get this is to get it from config, I wish this wasn't the case, but it is. |
For the record,
|
For the record, needs to be in the fhs environment for dxvk-nvapi to locate it. |
ec1aa90
to
5176ff7
Compare
5176ff7
to
669c020
Compare
669c020
to
c8f3699
Compare
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.
Thanks for working on this!
targetPkgs = | ||
pkgs: | ||
[ | ||
# Use umu-launcher-unwrapped from the package args, to support overriding | ||
umu-launcher-unwrapped | ||
] | ||
++ extraPkgs pkgs; |
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.
Wow nixfmt has made that ugly 💥 🚒
IDK if this is still the case, but it used to format things nicer if you made the list-literal the last part of the expression:
targetPkgs = | |
pkgs: | |
[ | |
# Use umu-launcher-unwrapped from the package args, to support overriding | |
umu-launcher-unwrapped | |
] | |
++ extraPkgs pkgs; | |
targetPkgs = pkgs: extraPkgs pkgs ++ [ | |
# Use umu-launcher-unwrapped from the package args, to support overriding | |
umu-launcher-unwrapped | |
]; |
No big deal, either way 🙂
Add
extraLibraries
&extraPkgs
to package attrs to allow passing graphical libs. This is needed for dxvk-nvapi to work on NVIDIA cards.Example from Steam of this being used:
nixpkgs/nixos/modules/programs/steam.nix
Lines 51 to 57 in 9588b84
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.