rest of the split migration
This commit is contained in:
25
modules/dev/go/common.nix
Normal file
25
modules/dev/go/common.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ pkgs }:
|
||||
let
|
||||
packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
go
|
||||
gocode-gomod
|
||||
gotools
|
||||
gore
|
||||
gotests
|
||||
gomodifytags
|
||||
golangci-lint
|
||||
;
|
||||
};
|
||||
GOPATH = "\${XDG_DATA_HOME:-\$HOME/.local/share}/go";
|
||||
in
|
||||
{
|
||||
inherit packages GOPATH;
|
||||
devShell = pkgs.mkShell {
|
||||
inherit packages GOPATH;
|
||||
name = "go-dev-shell";
|
||||
shellHook = ''
|
||||
echo "🐹 Go dev environment"
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user