From f8b7b030d293c17232753103564eba7e2f417a24 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 11 Apr 2021 14:03:58 +0530 Subject: Adds collection of shell files and new-shell command --- shell/go.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 shell/go.nix (limited to 'shell/go.nix') diff --git a/shell/go.nix b/shell/go.nix new file mode 100644 index 0000000..6af8f85 --- /dev/null +++ b/shell/go.nix @@ -0,0 +1,9 @@ +{}: +with import {}; +stdenv.mkDerivation { + name = "goenv"; + buildInputs = with pkgs; [ go gopls golangci-lint ]; + shellHook = '' + export GOROOT="${pkgs.go.out}/share/go"; + ''; +} -- cgit v1.3.1