setup GOPATH for go shell

This commit is contained in:
Adithya 2023-12-09 00:55:39 +05:30
parent beadfa5754
commit 6d73f3c81c
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -1,3 +1,7 @@
{ pkgs }: pkgs.mkShell { { pkgs }: pkgs.mkShell {
packages = with pkgs; [ go gopls ]; packages = with pkgs; [ go gopls ];
shellHook = ''
export GOPATH=$PWD/.nix/go
export PATH=$GOPATH/bin:$PATH
'';
} }