3 ms·
But you can use `envfs` to "restore" that compatibility ;) Or something heavier like `steam-run`
by paulgdp 3y ago
But you can use `envfs` to "restore" that compatibility ;)
Or something heavier like `steam-run`
- charcircuit 3y agoI end up just using patchelf since getting the alternatives working is harder. I would prefer if NixOS is going to give up on moving everything into /nix that it just makes symlinks in the standard paths so users don't need to find something to do it for them.
- pxc 3y agoI have thought this, too. But if that includes libraries or even stuff that would go under /usr/share, that could cause breakage on NixOS updates for software that expects specific versions of things at those paths. This is probably less of an issue for executable paths, but if people really expect to be able to ./configure && make on NixOS, NixOS needs to have a whole different release cycle. Ideally you'd probably still want atypical prefixes, if just like `/usr/1.0/...` or something so you could have multiple releases (and software compiled against them) live side-by-side. I think that could work really well, but it would be a huge maintenance burden and there's nobody up for it right now. And it would still involve some of the pain we currently have with unusual filesystem structure.
- rekado 3y agoWith Guix we use `guix shell --container --emulate-fhs` to temporarily wire things up to their expected locations: https://guix.gnu.org/en/blog/2023/the-filesystem-hierarchy-standard-comes-to-guix-containers/ https://guix.gnu.org/en/blog/2023/the-filesystem-hierarchy-s...
- charcircuit 3y agoguix shell --container --network --emulate-fhs \ --development ungoogled-chromium gcc:lib \ --preserve='^DISPLAY$' --preserve='^XAUTHORITY$' --expose=$XAUTHORITY \ --preserve='^DBUS_' --expose=/var/run/dbus \ --expose=/sys/dev --expose=/sys/devices --expose=/dev/dri \ -- ./VSCodium-1.74.0.22342.glibc2.17-x86_64.AppImage --appimage-extract-and-run This UX is so bad. I would never be able to remember all of this let alone some noob.
- anotherhue 3y agoor `podman run -V "$PWD":/mount debian /mount/myapp` if you want a really heavy fix. Packaging for nix isn't as hard as it might seem so I've found it easier just to do it the 'right' way.