diff --git a/nix/devshells/default.nix b/nix/devshells/default.nix index f9034d8f..d6f52080 100644 --- a/nix/devshells/default.nix +++ b/nix/devshells/default.nix @@ -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 @@ -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); -}) +}