flake: add 'add-license' command
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-05-21 22:05:36 +02:00
parent 105e9efeeb
commit 2e13ad9faf
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -136,6 +136,11 @@
xargs nix-store --query --requisites | \
cachix push go-xkcdreader
'';
add-license = pkgs.writeShellScriptBin "add-license" ''
go run github.com/google/addlicense@v1.0.0 -v \
-c "wanderer <a_mirre at utb dot cz>" \
-l "GPL-3.0-or-later" -s .
'';
in
{
default = with pkgs; mkShell
@ -173,6 +178,7 @@
gob
gota
upcache
add-license
gopls
gofumpt