Loading
resholve: fix using Nix API with overlays
Before this change, if you used an overlay to override the version of resholve that Nixpkgs uses, then Nixpkgs would sometimes use the new version of resholve and sometimes use the previous version of resholve. Specifically, pkgs.resholve would use the new version of resholve and pkgs.resholve.writeScriptBin would use the previous version of resholve. This change makes it so that if an overlay replaces pkgs.resholve, then pkgs.resholve and pkgs.resholve.writeScriptBin will still use the same version of resholve. Fixes #418458.