diff --git a/flake.nix b/flake.nix index c62cea7..d916cbf 100644 --- a/flake.nix +++ b/flake.nix @@ -68,7 +68,10 @@ # ]) ] ++ import ./overlay; - pkgsFor = flake-utils.lib.eachDefaultSystem ( + eachDefaultSystemPassThrough = flake-utils.lib.eachDefaultSystemPassThrough; + eachDefaultSystem = flake-utils.lib.eachDefaultSystem; + + pkgsFor = eachDefaultSystem ( system: import nixpkgs { inherit system overlays; @@ -78,7 +81,7 @@ } ); - treefmtEval = flake-utils.lib.eachDefaultSystem ( + treefmtEval = eachDefaultSystemPassThrough ( system: treefmt.lib.evalModule pkgsFor.system { projectRootFile = "flake.nix"; @@ -94,8 +97,8 @@ ); in { - formatter = flake-utils.lib.eachDefaultSystem (system: treefmtEval.${system}.config.build.wrapper); - checks = flake-utils.lib.eachDefaultSystem (system: { + formatter = eachDefaultSystemPassThrough (system: treefmtEval.${system}.config.build.wrapper); + checks = eachDefaultSystem (system: { formatting = treefmtEval.${system}.config.build.check self; }); # lets us build overlaid packages with `nix build .#`