finally figure out?
This commit is contained in:
parent
ecac432cb0
commit
7e0e1ea603
1 changed files with 7 additions and 4 deletions
11
flake.nix
11
flake.nix
|
@ -68,7 +68,10 @@
|
||||||
# ])
|
# ])
|
||||||
] ++ import ./overlay;
|
] ++ import ./overlay;
|
||||||
|
|
||||||
pkgsFor = flake-utils.lib.eachDefaultSystem (
|
eachDefaultSystemPassThrough = flake-utils.lib.eachDefaultSystemPassThrough;
|
||||||
|
eachDefaultSystem = flake-utils.lib.eachDefaultSystem;
|
||||||
|
|
||||||
|
pkgsFor = eachDefaultSystem (
|
||||||
system:
|
system:
|
||||||
import nixpkgs {
|
import nixpkgs {
|
||||||
inherit system overlays;
|
inherit system overlays;
|
||||||
|
@ -78,7 +81,7 @@
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
treefmtEval = flake-utils.lib.eachDefaultSystem (
|
treefmtEval = eachDefaultSystem (
|
||||||
system:
|
system:
|
||||||
treefmt.lib.evalModule pkgsFor.system {
|
treefmt.lib.evalModule pkgsFor.system {
|
||||||
projectRootFile = "flake.nix";
|
projectRootFile = "flake.nix";
|
||||||
|
@ -94,8 +97,8 @@
|
||||||
);
|
);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
formatter = flake-utils.lib.eachDefaultSystem (system: treefmtEval.${system}.config.build.wrapper);
|
formatter = eachDefaultSystemPassThrough (system: treefmtEval.${system}.config.build.wrapper);
|
||||||
checks = flake-utils.lib.eachDefaultSystem (system: {
|
checks = eachDefaultSystem (system: {
|
||||||
formatting = treefmtEval.${system}.config.build.check self;
|
formatting = treefmtEval.${system}.config.build.check self;
|
||||||
});
|
});
|
||||||
# lets us build overlaid packages with `nix build .#<package>`
|
# lets us build overlaid packages with `nix build .#<package>`
|
||||||
|
|
Loading…
Add table
Reference in a new issue