Nice and concise guide! The reason that the Nightly binary will not run directly on NixOS is due to the fact that all NixPkgs binaries are hardcoded with a specific dynamic linker (as there can be...
Nice and concise guide!
The reason that the Nightly binary will not run directly on NixOS is due to the fact that all NixPkgs binaries are hardcoded with a specific dynamic linker (as there can be multiple versions of glibc for different programs). Programs that expect the environment to provide a loader (say, at /lib64/ld-linux-x86-64.so.2) will fail out:
$ ./firefox
sh: ./firefox: No such file or directory
Nice and concise guide!
The reason that the Nightly binary will not run directly on NixOS is due to the fact that all NixPkgs binaries are hardcoded with a specific dynamic linker (as there can be multiple versions of
glibc
for different programs). Programs that expect the environment to provide a loader (say, at/lib64/ld-linux-x86-64.so.2
) will fail out:The differences in the binaries:
Solutions:
autopatchelf
)steam-run
)