16 lines
288 B
Nix
16 lines
288 B
Nix
|
{
|
||
|
self,
|
||
|
flake-utils,
|
||
|
git-hooks,
|
||
|
...
|
||
|
}:
|
||
|
flake-utils.lib.eachDefaultSystem (system: {
|
||
|
checks.pre-commit-check = git-hooks.lib.${system}.run {
|
||
|
src = ./.; # TODO: self?
|
||
|
hooks.treefmt = {
|
||
|
enable = true;
|
||
|
package = self.packages.${system}.formatter;
|
||
|
};
|
||
|
};
|
||
|
})
|