about summary refs log tree commit diff stats
path: root/flake.nix
diff options
context:
space:
mode:
authorAlan Pearce2024-05-11 18:50:47 +0200
committerAlan Pearce2024-05-11 18:50:47 +0200
commitcbb3f1f6082462c13e78273e5f65e23b6addba96 (patch)
tree7fb3c8280b1c6931430eb28db47f2d021f95fd4b /flake.nix
parent4fced5c6ea1a3bf56778e88b91d5c82a66807caf (diff)
downloadwebsite-cbb3f1f6082462c13e78273e5f65e23b6addba96.tar.lz
website-cbb3f1f6082462c13e78273e5f65e23b6addba96.tar.zst
website-cbb3f1f6082462c13e78273e5f65e23b6addba96.zip
move licenses check to flake
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 85f7915..64e275d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -50,6 +50,10 @@
           };
           checks = rec {
             default = hyperlink;
+            licenses = pkgs.runCommandLocal "go-licenses" { } ''
+              ${pkgs.go-licenses}/bin/go-licenses check ./...
+              touch $out
+            '';
             hyperlink = pkgs.runCommandLocal "hyperlink" { } ''
               ${pkgs.hyperlink}/bin/hyperlink ${packages.website}/website/public
               touch $out