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
|
# preexisting overlays. Prefer to initialize with the right overlays
|
||||||
# in one go when calling Nixpkgs, for performance and simplicity.
|
# in one go when calling Nixpkgs, for performance and simplicity.
|
||||||
appendOverlays = extraOverlays:
|
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
|
# Extend the package set with a single overlay. This preserves
|
||||||
# preexisting overlays. Prefer to initialize with the right overlays
|
# preexisting overlays. Prefer to initialize with the right overlays
|
||||||
|
Loading…
x
Reference in New Issue
Block a user