Expose eachSystem
This commit is contained in:
parent
46cfe38cef
commit
fb982690ee
1 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,9 @@
|
|||
eachSystemOp =
|
||||
op: systems: f:
|
||||
builtins.foldl' (op f) { } systems;
|
||||
mapEachSystem = eachSystemOp (
|
||||
in
|
||||
{
|
||||
lib.eachSystem = eachSystemOp (
|
||||
f: attrs: system:
|
||||
let
|
||||
result = f system;
|
||||
|
@ -41,8 +43,6 @@
|
|||
}
|
||||
) attrs (builtins.attrNames result)
|
||||
);
|
||||
in
|
||||
{
|
||||
lib.mkFlake =
|
||||
options@{
|
||||
flakeBaseSystems ? [
|
||||
|
@ -62,7 +62,7 @@
|
|||
];
|
||||
in
|
||||
(snowfall-lib.mkFlake snowfallOptions)
|
||||
// (mapEachSystem flakeBaseSystems (
|
||||
// (self.lib.eachSystem flakeBaseSystems (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue