File tree 2 files changed +1
-71
lines changed
2 files changed +1
-71
lines changed Original file line number Diff line number Diff line change 3
3
nixpkgs . url = "github:nixos/nixpkgs/nixpkgs-unstable" ;
4
4
systems . url = "github:nix-systems/default" ;
5
5
devenv . url = "github:cachix/devenv" ;
6
-
7
- gomod2nix = {
8
- url = "github:nix-community/gomod2nix" ;
9
- inputs . nixpkgs . follows = "nixpkgs" ;
10
- } ;
11
6
} ;
12
7
13
8
outputs = {
14
9
self ,
15
10
nixpkgs ,
16
11
devenv ,
17
12
systems ,
18
- gomod2nix ,
19
13
...
20
14
} @ inputs : let
21
15
forEachSystem = nixpkgs . lib . genAttrs ( import systems ) ;
37
31
packages = with pkgs ; [
38
32
automake
39
33
go_1_23
40
- gomod2nix . legacyPackages . ${ system } . gomod2nix
41
34
gotools
42
35
golangci-lint
43
36
go-tools
46
39
pre-commit
47
40
svu
48
41
] ;
49
-
50
- pre-commit . hooks . gomod2nix = {
51
- enable = true ;
52
- pass_filenames = false ;
53
- name = "gomod2nix" ;
54
- description = "Run gomod2nix before commit" ;
55
- entry = "${ gomod2nix . legacyPackages . ${ system } . gomod2nix } /bin/gomod2nix" ;
56
- } ;
57
42
}
58
43
] ;
59
44
} ;
You can’t perform that action at this time.
0 commit comments