mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
pkgs.appendOverlays: Avoid unnecessary nixpkgs evaluation
This commit is contained in:
parent
450d33fc5b
commit
889a5c3512
@ -164,7 +164,9 @@ let
|
||||
# preexisting overlays. Prefer to initialize with the right overlays
|
||||
# in one go when calling Nixpkgs, for performance and simplicity.
|
||||
appendOverlays = extraOverlays:
|
||||
import ./stage.nix (args // { overlays = args.overlays ++ extraOverlays; });
|
||||
if extraOverlays == []
|
||||
then self
|
||||
else import ./stage.nix (args // { overlays = args.overlays ++ extraOverlays; });
|
||||
|
||||
# Extend the package set with a single overlay. This preserves
|
||||
# preexisting overlays. Prefer to initialize with the right overlays
|
||||
|
Loading…
Reference in New Issue
Block a user