Skip to content

Commit

Permalink
feat: simplify devshell
Browse files Browse the repository at this point in the history
Signed-off-by: Brian McGee <[email protected]>
  • Loading branch information
brianmcgee committed Oct 9, 2024
1 parent bac4a0d commit d195f79
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions nix/devshells/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@
perSystem,
...
}:
perSystem.self.treefmt.overrideAttrs (old: {
GOROOT = "${old.go}/share/go";
pkgs.mkShellNoCC {
env.GOROOT = "${pkgs.go}/share/go";

shellHook = ''
# this is only needed for hermetic builds
unset GO_NO_VENDOR_CHECKS GOSUMDB GOPROXY GOFLAGS
'';

nativeBuildInputs =
old.nativeBuildInputs
++ (with pkgs; [
packages =
(with pkgs; [
go
goreleaser
golangci-lint
delve
Expand All @@ -23,7 +18,6 @@ perSystem.self.treefmt.overrideAttrs (old: {
enumer
perSystem.gomod2nix.default
])
++
# include formatters for development and testing
++ # include formatters for development and testing
(import ../packages/treefmt/formatters.nix pkgs);
})
}

0 comments on commit d195f79

Please sign in to comment.