-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.nix
More file actions
46 lines (44 loc) · 1 KB
/
scripts.nix
File metadata and controls
46 lines (44 loc) · 1 KB
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
{
pkgs,
gomod2nix ? null,
}:
let
# Import sophisticated packages with dependencies
pre-commit-global = import ./pre-commit.nix { inherit pkgs; };
fmt = import ./fmt.nix { inherit pkgs; };
lint = import ./lint.nix { inherit pkgs; };
upgrade = import ./upgrade.nix { inherit pkgs; };
cex = import ./cex.nix { inherit pkgs; };
fuzz = import ./fuzz.nix { inherit pkgs; };
fuzz-go = import ./fuzz-go.nix { inherit pkgs; };
license = import ./license.nix { inherit pkgs; };
tag = import ./tag.nix { inherit pkgs; };
godoc = import ./godoc.nix { inherit pkgs; };
# Only include tidy if gomod2nix is provided
optionalTidy =
if gomod2nix != null then
{
tidy = import ./tidy.nix {
inherit pkgs;
gomod2nix = gomod2nix;
};
}
else
{ };
in
{
# Use the sophisticated packages with bundled dependencies
inherit
fmt
lint
upgrade
cex
fuzz
fuzz-go
license
tag
godoc
pre-commit-global
;
}
// optionalTidy