From 6d73f3c81cc09b073d7ff37ea510373cf28beb0a Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 9 Dec 2023 00:55:39 +0530 Subject: [PATCH] setup GOPATH for go shell --- shells/go.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shells/go.nix b/shells/go.nix index d5c8566..a5beb65 100644 --- a/shells/go.nix +++ b/shells/go.nix @@ -1,3 +1,7 @@ { pkgs }: pkgs.mkShell { packages = with pkgs; [ go gopls ]; + shellHook = '' + export GOPATH=$PWD/.nix/go + export PATH=$GOPATH/bin:$PATH + ''; }