add and check licenses
1 file changed, 4 insertions(+), 0 deletions(-)
changed files
M flake.nix → flake.nix
@@ -29,6 +29,7 @@ packages = with pkgs; [ gopls gotools go-tools + go-licenses gomod2nix.packages.${system}.default gci flyctl@@ -37,6 +38,9 @@ ${pkgs.watchexec}/bin/watchexec -r -w flake.nix --shell fish 'direnv exec . watchexec -i server.go -i public -r go run ./cmd/build' '') (writeShellScriptBin "watch-server" '' ${pkgs.watchexec}/bin/watchexec -r -w flake.nix --shell fish 'direnv exec . watchexec -r go run ./server.go' + '') + (writeShellScriptBin "check-licenses" '' + ${pkgs.go-licenses}/bin/go-licenses check --include_tests ./... --disallowed_types=restricted,forbidden '') ] ++ nativeBuildInputs; };