flake(shells): add ad-hoc cmds [skip ci]

This commit is contained in:
surtur 2022-05-20 22:16:11 +02:00
parent d48923e97f
commit da71170af1
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -119,6 +119,14 @@
(import ./overlay.nix) (import ./overlay.nix)
]; ];
}; };
gob = pkgs.writeShellScriptBin "gob" ''
cd $(git rev-parse --show-toplevel)
go build -v ./...
'';
gota = pkgs.writeShellScriptBin "gota" ''
cd $(git rev-parse --show-toplevel)
go test ./...
'';
in in
{ {
default = with pkgs; mkShell default = with pkgs; mkShell
@ -152,6 +160,10 @@
goPkgs.patchelf-x86_64 goPkgs.patchelf-x86_64
goPkgs.patchelf-aarch64 goPkgs.patchelf-aarch64
## ad-hoc cmds
gob
gota
gopls gopls
gofumpt gofumpt
go-tools go-tools