finally figure out?

This commit is contained in:
cy 2025-01-13 01:59:24 -05:00
parent ecac432cb0
commit db62312ebe

View file

@ -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 .#<package>`