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