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-linux"
|
||||||
"aarch64-darwin"
|
"aarch64-darwin"
|
||||||
],
|
],
|
||||||
|
checks ? pkgs: { },
|
||||||
devShellPackages ? (pkgs: [ ]),
|
devShellPackages ? (pkgs: [ ]),
|
||||||
treeFmtFile ? ./treefmt.nix,
|
treeFmtFile ? ./treefmt.nix,
|
||||||
...
|
...
|
||||||
|
@ -72,7 +73,7 @@
|
||||||
formatter = treeFmtEval.config.build.wrapper;
|
formatter = treeFmtEval.config.build.wrapper;
|
||||||
checks = {
|
checks = {
|
||||||
fmt = treeFmtEval.config.build.check self;
|
fmt = treeFmtEval.config.build.check self;
|
||||||
};
|
} // (checks pkgs);
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
packages = [
|
packages = [
|
||||||
pkgs.nixfmt-rfc-style
|
pkgs.nixfmt-rfc-style
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue