setup GOPATH for go shell
This commit is contained in:
parent
beadfa5754
commit
6d73f3c81c
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
{ pkgs }: pkgs.mkShell {
|
||||
packages = with pkgs; [ go gopls ];
|
||||
shellHook = ''
|
||||
export GOPATH=$PWD/.nix/go
|
||||
export PATH=$GOPATH/bin:$PATH
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue