flake: checks: convert to 'flake-parts'

This commit is contained in:
Bruno BELANYI 2023-03-08 17:59:15 +00:00
parent 730e4abf17
commit e1e6c39bf1
2 changed files with 15 additions and 12 deletions

View file

@ -1,16 +1,20 @@
{ self, pre-commit-hooks, ... }:
system:
{ self, inputs, ... }:
{
pre-commit = pre-commit-hooks.lib.${system}.run {
src = self;
perSystem = { system, ... }: {
checks = {
# NOTE: seems like inputs' does not output the 'lib' attribute
pre-commit = inputs.pre-commit-hooks.lib.${system}.run {
src = self;
hooks = {
nixpkgs-fmt = {
enable = true;
};
hooks = {
nixpkgs-fmt = {
enable = true;
};
shellcheck = {
enable = true;
shellcheck = {
enable = true;
};
};
};
};
};