From db62312ebe001193d785cc4202fae8cfea6c5cc0 Mon Sep 17 00:00:00 2001 From: cy Date: Mon, 13 Jan 2025 01:59:24 -0500 Subject: [PATCH] finally figure out? --- flake.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 .#`