devshell/shells/go.nix

8 lines
153 B
Nix
Raw Permalink Normal View History

2023-12-08 13:18:53 +05:30
{ pkgs }: pkgs.mkShell {
packages = with pkgs; [ go gopls ];
2023-12-09 00:55:39 +05:30
shellHook = ''
export GOPATH=$PWD/.nix/go
export PATH=$GOPATH/bin:$PATH
'';
2023-12-08 13:18:53 +05:30
}