Expose eachSystem

This commit is contained in:
Kaare Hoff Skovgaard 2025-07-05 14:34:16 +02:00
parent 46cfe38cef
commit fb982690ee
Signed by: khs
GPG key ID: C7D890804F01E9F0

View file

@ -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; };