top-level: simplify checked using lib.all
This commit is contained in:
@@ -80,14 +80,10 @@ let
|
|||||||
|
|
||||||
checked =
|
checked =
|
||||||
(throwIfNot (lib.isList overlays) "The overlays argument to nixpkgs must be a list.")
|
(throwIfNot (lib.isList overlays) "The overlays argument to nixpkgs must be a list.")
|
||||||
(lib.foldr (
|
(throwIfNot (lib.all lib.isFunction overlays) "All overlays passed to nixpkgs must be functions.")
|
||||||
x: throwIfNot (lib.isFunction x) "All overlays passed to nixpkgs must be functions."
|
|
||||||
) lib.id overlays)
|
|
||||||
(throwIfNot (lib.isList crossOverlays) "The crossOverlays argument to nixpkgs must be a list.")
|
(throwIfNot (lib.isList crossOverlays) "The crossOverlays argument to nixpkgs must be a list.")
|
||||||
(
|
(
|
||||||
lib.foldr (
|
throwIfNot (lib.all lib.isFunction crossOverlays) "All crossOverlays passed to nixpkgs must be functions."
|
||||||
x: throwIfNot (lib.isFunction x) "All crossOverlays passed to nixpkgs must be functions."
|
|
||||||
) lib.id crossOverlays
|
|
||||||
);
|
);
|
||||||
|
|
||||||
localSystem = lib.systems.elaborate args.localSystem;
|
localSystem = lib.systems.elaborate args.localSystem;
|
||||||
|
|||||||
Reference in New Issue
Block a user