summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--release/checks/doc-anchors.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/release/checks/doc-anchors.nix b/release/checks/doc-anchors.nix
index 1fae7e3..a21f67c 100644
--- a/release/checks/doc-anchors.nix
+++ b/release/checks/doc-anchors.nix
@@ -1,12 +1,11 @@
 # SPDX-License-Identifier: MIT
 # SPDX-FileCopyrightText: 2023 Alyssa Ross <hi@alyssa.is>
 
-import ../../lib/eval-config.nix ({ config, ... }:
+import ../../lib/eval-config.nix ({ config, src, ... }:
 config.pkgs.callPackage ({ runCommand }:
 
 runCommand "spectrum-doc-anchors" {} ''
-  cd ${(import ../../Documentation { inherit config; }).src}
-  ! grep --color=always -r xref:http
+  ! grep --color=always -r xref:http ${src}
   touch $out
 ''
 ) { })