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 =
|
eachSystemOp =
|
||||||
op: systems: f:
|
op: systems: f:
|
||||||
builtins.foldl' (op f) { } systems;
|
builtins.foldl' (op f) { } systems;
|
||||||
mapEachSystem = eachSystemOp (
|
in
|
||||||
|
{
|
||||||
|
lib.eachSystem = eachSystemOp (
|
||||||
f: attrs: system:
|
f: attrs: system:
|
||||||
let
|
let
|
||||||
result = f system;
|
result = f system;
|
||||||
|
@ -41,8 +43,6 @@
|
||||||
}
|
}
|
||||||
) attrs (builtins.attrNames result)
|
) attrs (builtins.attrNames result)
|
||||||
);
|
);
|
||||||
in
|
|
||||||
{
|
|
||||||
lib.mkFlake =
|
lib.mkFlake =
|
||||||
options@{
|
options@{
|
||||||
flakeBaseSystems ? [
|
flakeBaseSystems ? [
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
(snowfall-lib.mkFlake snowfallOptions)
|
(snowfall-lib.mkFlake snowfallOptions)
|
||||||
// (mapEachSystem flakeBaseSystems (
|
// (self.lib.eachSystem flakeBaseSystems (
|
||||||
system:
|
system:
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue