finally figure out?
This commit is contained in:
parent
ecac432cb0
commit
db62312ebe
1 changed files with 7 additions and 4 deletions
11
flake.nix
11
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 .#<package>`
|
||||
|
|
Loading…
Add table
Reference in a new issue