diff options
Diffstat (limited to 'checks')
| -rw-r--r-- | checks/actionlint/package.nix | 10 | ||||
| -rw-r--r-- | checks/alejandra/package.nix | 10 | ||||
| -rw-r--r-- | checks/biome-fmt/package.nix | 10 | ||||
| -rw-r--r-- | checks/biome-lint/package.nix | 10 | ||||
| -rw-r--r-- | checks/deadnix/package.nix | 10 | ||||
| -rw-r--r-- | checks/editorconfig/package.nix | 11 | ||||
| -rw-r--r-- | checks/rustfmt/package.nix | 11 | ||||
| -rw-r--r-- | checks/selene/package.nix | 11 | ||||
| -rw-r--r-- | checks/statix/package.nix | 10 | ||||
| -rw-r--r-- | checks/stylua/package.nix | 10 |
10 files changed, 103 insertions, 0 deletions
diff --git a/checks/actionlint/package.nix b/checks/actionlint/package.nix new file mode 100644 index 0000000..561f826 --- /dev/null +++ b/checks/actionlint/package.nix @@ -0,0 +1,10 @@ +{ + lib, + runCommand, + root, + actionlint, +}: +runCommand "check-actionlint" {} '' + ${lib.getExe actionlint} ${root}/.github/workflows/* + touch $out +'' diff --git a/checks/alejandra/package.nix b/checks/alejandra/package.nix new file mode 100644 index 0000000..1f2c995 --- /dev/null +++ b/checks/alejandra/package.nix @@ -0,0 +1,10 @@ +{ + lib, + runCommand, + root, + alejandra, +}: +runCommand "check-alejandra" {} '' + ${lib.getExe alejandra} --check ${root} + touch $out +'' diff --git a/checks/biome-fmt/package.nix b/checks/biome-fmt/package.nix new file mode 100644 index 0000000..11d967c --- /dev/null +++ b/checks/biome-fmt/package.nix @@ -0,0 +1,10 @@ +{ + lib, + runCommand, + root, + biome, +}: +runCommand "check-biome-fmt" {} '' + ${lib.getExe biome} format ${root}/**/* + touch $out +'' diff --git a/checks/biome-lint/package.nix b/checks/biome-lint/package.nix new file mode 100644 index 0000000..b575d34 --- /dev/null +++ b/checks/biome-lint/package.nix @@ -0,0 +1,10 @@ +{ + lib, + runCommand, + root, + biome, +}: +runCommand "check-biome-lint" {} '' + ${lib.getExe biome} lint ${root}/**/* + touch $out +'' diff --git a/checks/deadnix/package.nix b/checks/deadnix/package.nix new file mode 100644 index 0000000..9faaea5 --- /dev/null +++ b/checks/deadnix/package.nix @@ -0,0 +1,10 @@ +{ + lib, + runCommand, + root, + deadnix, +}: +runCommand "check-deadnix" {} '' + ${lib.getExe deadnix} --fail ${root} + touch $out +'' diff --git a/checks/editorconfig/package.nix b/checks/editorconfig/package.nix new file mode 100644 index 0000000..97b2a31 --- /dev/null +++ b/checks/editorconfig/package.nix @@ -0,0 +1,11 @@ +{ + lib, + runCommand, + root, + editorconfig-checker, +}: +runCommand "check-editorconfig" {} '' + cd ${root} + ${lib.getExe editorconfig-checker} -exclude '.git' . + touch $out +'' diff --git a/checks/rustfmt/package.nix b/checks/rustfmt/package.nix new file mode 100644 index 0000000..ef12b49 --- /dev/null +++ b/checks/rustfmt/package.nix @@ -0,0 +1,11 @@ +{ + runCommand, + root, + cargo, + rustfmt, +}: +runCommand "check-rustfmt" {nativeBuildInputs = [cargo rustfmt];} '' + cd ${root} + cargo fmt -- --check + touch $out +'' diff --git a/checks/selene/package.nix b/checks/selene/package.nix new file mode 100644 index 0000000..cc9f15f --- /dev/null +++ b/checks/selene/package.nix @@ -0,0 +1,11 @@ +{ + lib, + runCommand, + root, + selene, +}: +runCommand "check-selene" {} '' + cd ${root} + ${lib.getExe selene} . + touch $out +'' diff --git a/checks/statix/package.nix b/checks/statix/package.nix new file mode 100644 index 0000000..aa0a478 --- /dev/null +++ b/checks/statix/package.nix @@ -0,0 +1,10 @@ +{ + lib, + runCommand, + root, + statix, +}: +runCommand "check-statix" {} '' + ${lib.getExe statix} check ${root} + touch $out +'' diff --git a/checks/stylua/package.nix b/checks/stylua/package.nix new file mode 100644 index 0000000..57b439b --- /dev/null +++ b/checks/stylua/package.nix @@ -0,0 +1,10 @@ +{ + lib, + runCommand, + root, + stylua, +}: +runCommand "check-stylua" {} '' + ${lib.getExe stylua} --check ${root} + touch $out +'' |
