You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS6.topic: steamSteam game store/launcher (store.steampowered.com)
The SHENZHEN I/O game on Steam launches after overriding LD_LIBRARY_PATH. Sadly this means it can't then load libGL on NixOS. I had to modify the launcher script under ~/.steam/steam/steamapps/common/SHENZHEN IO/Shenzhen so that it would prepend, instead of override:
I recently thought about using ld.so.cache instead of LD_LIBRARY_PATH. It solves those problems and also speeds things up, but there is one thing which breaks the idea: we can't do nested ld.so.cache. That is, Steam FHS would have its own ld.so.cache, and host NixOS would have its own (with /run/opengl-driver/lib), and we can't simply combine them somehow -- the only way from what I see is to run ldconfig at every start of FHS env (which seems hacky and slow to me).
Also I've thought of adding support for NIX_LD_LIBRARY_PATH to Glibc. Unfortunately, the code is... not so easy I hoped it to be. I took a look long ago so the details are hazy but we can't just add add_library_path("NIX_LD_LIBRARY_PATH") somewhere and be done.
And to answer your question -- no, we don't have any automated way to patch games ATM, and it would be difficult to do (we need to somehow track your game installations and run hooks for new ones). Also, Steam will replace this patch on the game update, and some games might check their files too, so some other solution must be found.
6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS6.topic: steamSteam game store/launcher (store.steampowered.com)
Activity
abbradar commentedon Dec 13, 2016
I recently thought about using
ld.so.cacheinstead ofLD_LIBRARY_PATH. It solves those problems and also speeds things up, but there is one thing which breaks the idea: we can't do nestedld.so.cache. That is, Steam FHS would have its ownld.so.cache, and host NixOS would have its own (with/run/opengl-driver/lib), and we can't simply combine them somehow -- the only way from what I see is to runldconfigat every start of FHS env (which seems hacky and slow to me).Also I've thought of adding support for
NIX_LD_LIBRARY_PATHto Glibc. Unfortunately, the code is... not so easy I hoped it to be. I took a look long ago so the details are hazy but we can't just addadd_library_path("NIX_LD_LIBRARY_PATH")somewhere and be done.abbradar commentedon Dec 13, 2016
And to answer your question -- no, we don't have any automated way to patch games ATM, and it would be difficult to do (we need to somehow track your game installations and run hooks for new ones). Also, Steam will replace this patch on the game update, and some games might check their files too, so some other solution must be found.
tomberek commentedon Oct 10, 2018
close as resolved or old?
puffnfresh commentedon Oct 10, 2018
Yeah just old
nyanloutre commentedon Jul 1, 2019
Still happening, the export in the launch script did the trick