@tadzik @kuba Nix embeds the exact path to the dynamic library this executable was compiled with into the executable. So, it'll never use a different minor version of that library and updating the library requires rebuilding the executable, but the library will still be shared by everyone who loads it.
Whether dynamic linking is worth it in that situation is debatable.