mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-01-08 22:08:03 -05:00
31 lines
491 B
Nix
31 lines
491 B
Nix
{
|
|
pkgs,
|
|
gomod2nix,
|
|
goEnv,
|
|
}:
|
|
|
|
{
|
|
default = pkgs.mkShell {
|
|
nativeBuildInputs = [
|
|
pkgs.go
|
|
pkgs.gopls
|
|
pkgs.gotools
|
|
pkgs.go-tools
|
|
pkgs.goimports-reviser
|
|
gomod2nix
|
|
goEnv
|
|
|
|
(pkgs.writeShellScriptBin "update" ''
|
|
go get -u
|
|
go mod tidy
|
|
gomod2nix generate
|
|
'')
|
|
];
|
|
|
|
shellHook = ''
|
|
echo -e "\033[0;32;4mHeper commands:\033[0m"
|
|
echo "'update' instead of 'go get -u && go mod tidy'"
|
|
'';
|
|
};
|
|
}
|