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

@ -136,6 +136,11 @@
xargs nix-store --query --requisites | \ xargs nix-store --query --requisites | \
cachix push go-xkcdreader 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 in
{ {
default = with pkgs; mkShell default = with pkgs; mkShell
@ -173,6 +178,7 @@
gob gob
gota gota
upcache upcache
add-license
gopls gopls
gofumpt gofumpt