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
lutris: init at 0.5.2.1 #61742
lutris: init at 0.5.2.1 #61742
Conversation
Added reviewers for the original PR here. |
You can probably condense down most of my commits to make the log a bit cleaner. |
<3 compiles and runs here. I had a warning about vulkan. |
What was the warning about vulkan? |
That warning is on the startup; it's because Lutris tries to find Vulkan libraries with ldconfig and fails because it doesn't work on NixOS. Vulkan should still work. I had a project long time ago to use ld.so.cache in FHS environments but it was more trouble than it was worth. We can patch this check out instead if we want to. |
a runtime popup saying some games might not be supported. This might be related to my driver. It's a workstation so I haven't check the opengl installation. I was just wondering if it was a missing lutris component or just my deficient setup Result from a nix-buil
|
Are there any ideas on how to get ldconfig and perhaps other similar tools to work with NixOS? |
@Chiiruno Possible in FHS environments but would require an stdenv rebuild and significant changes. I think I did a PR and the conclusion was that it would be too much changes for too little gain; I'll search for it later. |
@Chiiruno Ah, I completely forgot to ask - do you remember why you added python2 and gnome2 dependencies? I tried to remove them locally and didn't observe any change. |
Nice to see you here, @abbradar! |
Thanks, nice to see y'all too ;)
…On May 20, 2019 8:42:28 PM GMT+03:00, Graham Christensen ***@***.***> wrote:
Nice to see you here, @abbradar!
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#61742 (comment)
--
Nikolay.
|
@abbradar I don't quite remember, it may have been fixed by pulling in the python and gtk/gnome nix stuff. So, maybe not necessary anymore. |
480b349
to
660c553
Compare
I merged all commits for lutris into one commit with mentions of us three for clarity. Is this okay for you, @Chiiruno, @yegortimoshenko? I also removed gnome2/python2 dependencies. |
It would be awesome if people could test this package and report what games work and which ones don't |
@abbradar Yeah, I'm fine with that. |
5df6677
to
4ed9de7
Compare
I've tested for a bit, but couldn't manage to run Steam from Lutris (Note: I don't have steam in my systemPackages/user packages):
Unfortunately I have no idea where the "unshare" comes from :-/ Kernel is 4.19.44 and CONFIG_USER_NS is enabled Here's what I did to test this Lutris: # From local nixpkgs
git fetch upstream pull/61742/head:
git checkout FETCH_HEAD
nix build -f . lutris
./result/bin/lutris |
For this to work you need another PR merged in your tree - look in this PR description (it's difficult to quickly find from phone, sorry).
…On May 21, 2019 10:11:27 PM GMT+03:00, "Rémi NICOLE" ***@***.***> wrote:
I've tested for a bit, but couldn't manage to run Steam from Lutris
(Note: I don't have steam in my systemPackages/user packages):
```
2019-05-21 21:00:49,199: Runtime disabled by system configuration
Running /nix/store/6vpgynlgifmrxzr1pw1acfr08da154ic-steam/bin/steam
** (process:7692): WARNING **: 21:00:49.563: chrootenv doesn't stack!
** Message: 21:00:49.564: Requires Linux version >= 3.19 built with
CONFIG_USER_NS
** (process:7694): ERROR **: 21:00:49.565: main: unshare: Operation not
permitted
Waiting on children
Exit with returncode -5
```
Unfortunately I have no idea where the "unshare" comes from :-/
Kernel is 4.19.44 and CONFIG_USER_NS is enabled
Here's what I did to test this Lutris:
```sh
# From local nixpkgs
git fetch upstream pull/61742/head:
git checkout FETCH_HEAD
nix build -f . lutris
./result/bin/lutris
```
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#61742 (comment)
--
Nikolay.
|
Oh I see, thank you! |
So for those following at
|
Data point: Testing Minecraft with the new launcher (the very bottom option of the installer list):
Even after adding |
Original derivation for version 0.4.18 by Chiiruno. With minor fixes by yegortimoshenko. Updated by 0.5.2.1 by abbradar.
Added Either way let's merge soon and fix issues with particular games via follow-up PRs. I'll do it in several days unless any objections arise. |
agreed we'll have more feedback when it gets more widely available. It has been lurking long enough. |
Thanks, that at least worked for that specific error, then I needed to add a whole bunch more stuff:
This made the launcher succeed, but to actually launch the game I also needed to add I'm wondering, will every game require having to tweak the dependencies? Because that seems far from optimal. On other distro's you can just install the libraries needed and be done, and lutris probably expects that, but with NixOS's |
Yeah, sadly that's the case. We can of course add an argument like `extraLibraries` to allow users adding libraries on their own. But also adding them by ourselves is a good idea at least for common libraries like those you listed. We would cover most cases after some time because games tend to depend on stuff from Steam Runtime and not much more, at least no random obscure libraries.
…On May 25, 2019 3:54:28 PM GMT+03:00, Silvan Mosberger ***@***.***> wrote:
Thanks, that at least worked for that specific error, then I needed to
add a whole bunch more stuff:
- nspr
- gnome2.GConf
- libXdamage
- libXfixes
- libXtst
- libXScrnSaver
This made the launcher succeed, but to actually launch the game I also
needed to add `jdk` for Java.
I'm wondering, will every game require having to tweak the
dependencies? Because that seems far from optimal. On other distro's
you can just install the libraries needed and be done, and lutris
probably expects that, but with NixOS's `buildFHSUserEnv` I don't think
that's possible.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#61742 (comment)
--
Nikolay.
|
Maybe we could add some options to the package like |
For reference, this packages currently has a closure size of ~6.3GB |
Are there any blockers for this, disregarding the closure size? |
Unfortunately #61740 can't be merged right away due to a conflict, so steam integration won't be working until then. |
Quick question: Does lutris really need steam as hard-coded dependency? Doesn't it work without steam? Because (as far as I understand) running MTGarena for example only requires wine, but not steam. Or am I wrong here? |
That's the main problem with the whole Lutris package currently -- it's not modular. In the end I think we should ask users to install needed packages separately because |
@abbradar I would then propose having two Lutris package variants:
The objective of this would be to have the 'regular' package be one that Just Works (ie. if the user installs the obvious thing, they will not run into mysterious failures that require documentation reading), but to still offer a lighter-weight option for those who need or prefer it. Given that the goal of Lutris is explicitly to combine multiple different game sources into one tool, I think it would be reasonable (and aligning with user expectations) to install a large pile of dependencies alongside it by default. That is, after all, usually why somebody would use Lutris - because they just want everything to work right away. If they only wanted support for one game source, they probably just would've used that source directly. |
@abbradar For some reason these icons are broken in lutris https://github.com/lutris/lutris/tree/master/share/lutris/icons/hicolor/symbolic/apps |
I got an error when I tried to install League of Legends; it seems like AppImages don't work even in the FHS,
|
@olynch That's because setuid applications don't work in user namespaces, for reasons of security. I don't think there is a simple way around - maybe AppImage supports using user namespaces themselves instead of setuid binaries. |
@gnidorah Can you provide some example of how I can test them? |
@abbradar Runners icons should not be broken |
I fixed the icons and also generally refactored the package in b0a961e. Also there's now |
Motivation for this change
This is a rebase and update for #42075 . Together with #61740 this provides working Lutris with Steam integration.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)