Make it easier to add checks to resulting flake
This commit is contained in:
parent
fb982690ee
commit
9ab6383e19
1 changed files with 2 additions and 1 deletions
|
@ -50,6 +50,7 @@
|
|||
"aarch64-linux"
|
||||
"aarch64-darwin"
|
||||
],
|
||||
checks ? pkgs: { },
|
||||
devShellPackages ? (pkgs: [ ]),
|
||||
treeFmtFile ? ./treefmt.nix,
|
||||
...
|
||||
|
@ -72,7 +73,7 @@
|
|||
formatter = treeFmtEval.config.build.wrapper;
|
||||
checks = {
|
||||
fmt = treeFmtEval.config.build.check self;
|
||||
};
|
||||
} // (checks pkgs);
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = [
|
||||
pkgs.nixfmt-rfc-style
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue