Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nixos/top-level: improve replaceRuntimeDependencies
Instead of iterating over all replacements and applying them one by one, use the newly introduced replaceDependencies function to apply them all at once for replaceRuntimeDependencies. The advantages are twofold in case there are multiple replacements: * Performance is significantly improved, because there is only one pass over the closure to be made. * Correctness is improved, because replaceDependencies also replaces dependencies of the replacements themselves if applicable. Fixes: NixOS#4336
- Loading branch information