diff options
| author | seth <[email protected]> | 2024-04-17 03:50:34 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-04-17 03:50:34 -0400 |
| commit | dfdb0ceed87923086f258f5291276c9db0b7ecd0 (patch) | |
| tree | cf292e6da1789f71b07e85c8f2936bd60d210fce /nix/checks.nix | |
| parent | cbcc5c09585229ec31cf76f2ab666b2d34129914 (diff) | |
nix: remove all inputs
Diffstat (limited to 'nix/checks.nix')
| -rw-r--r-- | nix/checks.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/nix/checks.nix b/nix/checks.nix new file mode 100644 index 0000000..c7f6547 --- /dev/null +++ b/nix/checks.nix @@ -0,0 +1,46 @@ +{ + lib, + runCommand, + actionlint, + biome, + deadnix, + formatter, + eclint, + statix, + ... +}: { + actionlint = runCommand "check-actionlint" {} '' + ${lib.getExe actionlint} ${../.github/workflows}/* + touch $out + ''; + + biome-fmt = runCommand "check-biome-fmt" {} '' + ${lib.getExe biome} format ${../.}/**/* + touch $out + ''; + + biome-lint = runCommand "check-biome-lint" {} '' + ${lib.getExe biome} lint ${../.}/**/* + touch $out + ''; + + deadnix = runCommand "check-deadnix" {} '' + ${lib.getExe deadnix} ${../.} + touch $out + ''; + + "${formatter.pname}" = runCommand "check-${formatter.pname}" {} '' + ${lib.getExe formatter} --check ${../.} + touch $out + ''; + + eclint = runCommand "check-eclint" {} '' + ${lib.getExe eclint} ${../.}/**/* + touch $out + ''; + + statix = runCommand "check-statix" {} '' + ${lib.getExe statix} check ${../.} + touch $out + ''; +} |
