From b531d639c33983feec48fa1c3f6f0ebe4f0ef5a1 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 22 May 2024 01:38:12 -0400 Subject: flake: start using flake-checks --- checks.nix | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 checks.nix (limited to 'checks.nix') 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 - ''; -} -- cgit v1.2.3