We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bac4a0d commit d195f79Copy full SHA for d195f79
nix/devshells/default.nix
@@ -3,17 +3,12 @@
3
perSystem,
4
...
5
}:
6
-perSystem.self.treefmt.overrideAttrs (old: {
7
- GOROOT = "${old.go}/share/go";
+pkgs.mkShellNoCC {
+ env.GOROOT = "${pkgs.go}/share/go";
8
9
- shellHook = ''
10
- # this is only needed for hermetic builds
11
- unset GO_NO_VENDOR_CHECKS GOSUMDB GOPROXY GOFLAGS
12
- '';
13
-
14
- nativeBuildInputs =
15
- old.nativeBuildInputs
16
- ++ (with pkgs; [
+ packages =
+ (with pkgs; [
+ go
17
goreleaser
18
golangci-lint
19
delve
@@ -23,7 +18,6 @@ perSystem.self.treefmt.overrideAttrs (old: {
23
enumer
24
perSystem.gomod2nix.default
25
20
])
26
- ++
27
- # include formatters for development and testing
21
+ ++ # include formatters for development and testing
28
22
(import ../packages/treefmt/formatters.nix pkgs);
29
-})
+}
0 commit comments