blob: 828ad7e06d4d7ad904200e54b482eb9d62f79b6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{
pkgs,
self,
}: let
inherit (pkgs) lib;
formatter = self.formatter.${pkgs.system};
in {
check-actionlint = pkgs.runCommand "check-actionlint" {} ''
${lib.getExe pkgs.actionlint} ${./.}/.github/workflows/*
touch $out
'';
"check-${formatter.pname}" = pkgs.runCommand "check-${formatter.pname}" {} ''
${lib.getExe formatter} --check ${./.}
touch $out
'';
check-selen = pkgs.runCommand "check-selene" {} ''
${lib.getExe pkgs.selene} ${./config}
'';
check-statix = pkgs.runCommand "check-statix" {} ''
${lib.getExe pkgs.statix} check ${./.}
touch $out
'';
check-stylua = pkgs.runCommand "check-stylua" {} ''
${lib.getExe pkgs.stylua} --check ${./.}
touch $out
'';
}
|