summaryrefslogtreecommitdiff
path: root/checks.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-05-22 01:38:12 -0400
committerseth <[email protected]>2024-05-22 16:21:31 -0600
commitb531d639c33983feec48fa1c3f6f0ebe4f0ef5a1 (patch)
treed6c032fde4a924b95162b6772a6867cbe552c2db /checks.nix
parent5092d107cd85187678383a0ea7dbcfbaef539064 (diff)
flake: start using flake-checks
Diffstat (limited to 'checks.nix')
-rw-r--r--checks.nix37
1 files changed, 0 insertions, 37 deletions
diff --git a/checks.nix b/checks.nix
deleted file mode 100644
index 93d387f..0000000
--- a/checks.nix
+++ /dev/null
@@ -1,37 +0,0 @@
-self: {
- lib,
- runCommand,
- system,
- actionlint,
- fd,
- statix,
- nil,
- ...
-}: let
- formatter = self.formatter.${system};
-in {
- check-actionlint = runCommand "check-actionlint" {} ''
- ${lib.getExe actionlint} ${./.github/workflows}/*
-
- touch $out
- '';
-
- check-nil = runCommand "check-nil" {} ''
- cd ${./.}
- ${lib.getExe fd} . -e 'nix' | while read -r file; do
- ${lib.getExe nil} diagnostics "$file"
- done
-
- touch $out
- '';
-
- check-statix = runCommand "check-statix" {} ''
- ${lib.getExe statix} check ${./.}
- touch $out
- '';
-
- "check-${formatter.pname}" = runCommand "check-${formatter.pname}" {} ''
- ${lib.getExe formatter} --check ${./.}
- touch $out
- '';
-}