I've been trying to run native linux games with lutris but can't get it to work. As far as ik, i can either use steam-app in my termianl, which works, or I can use nix-ld which i did setup and also works when running the game's executable from the terminal
I've setup nix-ld like so:
programs.nix-ld = {
enable = true;
libraries = [(pkgs.runCommand "steamrun-lib" {}
"mkdir $out; ln -s ${pkgs.steam-run.fhsenv}/usr/lib64 $out/lib")];
};
But for some reasons, when running the game's executable in lutris, it just fails instantly, and I'm kinda out of ideas, if anyone knows what to do that'd be real helpful please
Edit:
Ok well apparently it just solved itself ??? I realized i could install lutis using programs.lutris.enable = true; instead of just putting it in home.packages, and apparently it fixed the issue. Idk why or how but ig if u use home manager, insall lutris like so
No, you are getting the correct Lutris derivation, but it seems like you can't override
buildFHSEnvin this way (unlike a regular derivation) which is unfortunate. Looking at it again the package takes anextraLibrariesparameter (but it's a function taking a pkgs argument and producing a list, not a bare list). In principle this should work:But it actually fails because both
steam-runandlutrisprovide/usr/lib64/ld-linux.so.2leading to a name collision. So unfortunately it seems the idea of just adding the steam-run env to Lutris doesn't quite work...You could instead try something like this:
Which library the problem game actually needs is anyone's guess. That information might show up somewhere in the logs, or maybe
lddcould tell you... but the signal to noise ratio probably won't be very good.