Linking on NixOS, wrapper magic, and RPATH
July 24, 2022
Linking in NixOS can definitely have a few surprises in store, as the blog post by matklad shows. Due to how RPATH works under NixOS, there are wrappers for applications such as linkers and tools like patchelf for patching pre-built binaries. The latter is also common for packaging binaries, where one should use AutoPatchelfHook.