Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nix: Reduce number of nixpkgs variants
Now the `applyPatches` (derivation-creating) function can be supplied from a pre-instantiated nixpkgs derivation, or from `nixpkgs.legacyPackages` if `nixpkgs` is a flake, or from an import of the unpatches `nixpkgs` otherwise. The previous code would instantiate a version of nixpkgs just for the call to `applyPatches`.
- Loading branch information