summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nix/checks.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/nix/checks.nix b/nix/checks.nix
index df21d69..bbaf78a 100644
--- a/nix/checks.nix
+++ b/nix/checks.nix
@@ -6,6 +6,20 @@
 {
   recurseForDerivations = true;
 
+  doc-links = config.pkgs.callPackage (
+    { lib, runCommand, ruby, wget }:
+    runCommand "spectrum-doc-links" {
+      doc = import ../Documentation { inherit config; };
+      nativeBuildInputs = [ ruby wget ];
+    } ''
+      mkdir root
+      ln -s $doc root/doc
+      ruby -run -e httpd -- --port 4000 root &
+      wget -r -nv --delete-after --no-parent --retry-connrefused http://localhost:4000/doc/
+      touch $out
+    ''
+  ) {};
+
   rustfmt = config.pkgs.callPackage (
     { lib, runCommand, rustfmt }:
     runCommand "spectrum-rustfmt" {