blob: c7f65473474e3c193091962d7ecb202f5a85bbd1 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
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
'';
}
|