nix-config/flake/checks.nix

22 lines
410 B
Nix
Raw Normal View History

{ self, inputs, ... }:
2023-03-07 11:49:12 +01:00
{
perSystem = { system, ... }: {
checks = {
# NOTE: seems like inputs' does not output the 'lib' attribute
pre-commit = inputs.pre-commit-hooks.lib.${system}.run {
src = self;
2023-03-07 11:49:12 +01:00
hooks = {
nixpkgs-fmt = {
enable = true;
};
2023-03-07 11:49:12 +01:00
shellcheck = {
enable = true;
};
};
2023-03-07 11:49:12 +01:00
};
};
};
}