diff --git a/flake.nix b/flake.nix index cc51c0b..4f0cd61 100644 --- a/flake.nix +++ b/flake.nix @@ -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; };