This is such a cool feature!
I think your nix-ld is going to make crazy shit possible:
1 - searching through different NixOS commits historically for a library version match
2 - doing it dynamically at startup by replacing the interpreter in the ELF header
(or replacing the default interpreter on NixOS)
3 - caching the determined results in a āfingerprint fileā so that its faster next time.
Thereās some idea here that you can maybe just copy dynamically linked binaries across machines but have all the library resolving be deterministic from nixpkgs is really insane.
Iād love to work on that some more!
(Trying to figure out a PhD research area lol)