Skip to content

Commit d195f79

Browse files
committed
feat: simplify devshell
Signed-off-by: Brian McGee <[email protected]>
1 parent bac4a0d commit d195f79

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

nix/devshells/default.nix

+7-13
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,12 @@
33
perSystem,
44
...
55
}:
6-
perSystem.self.treefmt.overrideAttrs (old: {
7-
GOROOT = "${old.go}/share/go";
6+
pkgs.mkShellNoCC {
7+
env.GOROOT = "${pkgs.go}/share/go";
88

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; [
9+
packages =
10+
(with pkgs; [
11+
go
1712
goreleaser
1813
golangci-lint
1914
delve
@@ -23,7 +18,6 @@ perSystem.self.treefmt.overrideAttrs (old: {
2318
enumer
2419
perSystem.gomod2nix.default
2520
])
26-
++
27-
# include formatters for development and testing
21+
++ # include formatters for development and testing
2822
(import ../packages/treefmt/formatters.nix pkgs);
29-
})
23+
}

0 commit comments

Comments
 (0)