Isn't this what you want? You are reliably linking to the specific dynamic libraries you are compiling against.
Or was the issue that you expected them to be portable? Or use commonly known dynamic library locations?
Or was the issue that you expected them to be portable? Or use commonly known dynamic library locations?
I was more or less pointing out the UX issues with Nix that end up turning many people away.