about summary refs log tree commit diff stats
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 479e700..cd1e86d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -29,6 +29,7 @@
                 gopls
                 gotools
                 go-tools
+                go-licenses
                 gomod2nix.packages.${system}.default
                 gci
                 flyctl
@@ -38,6 +39,9 @@
                 (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;
             };
           };