diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-05-01 17:07:51 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-05-01 17:07:51 +0000 |
commit | 608cf1bb5d9f252e983404ab9547e627a37d3eb4 (patch) | |
tree | f2f3d7df34d55ae70133fb8fff6938963bd708b1 /release | |
parent | abf73fadbc7d77c31385300395870520f7ba7e5d (diff) | |
download | spectrum-608cf1bb5d9f252e983404ab9547e627a37d3eb4.tar spectrum-608cf1bb5d9f252e983404ab9547e627a37d3eb4.tar.gz spectrum-608cf1bb5d9f252e983404ab9547e627a37d3eb4.tar.bz2 spectrum-608cf1bb5d9f252e983404ab9547e627a37d3eb4.tar.lz spectrum-608cf1bb5d9f252e983404ab9547e627a37d3eb4.tar.xz spectrum-608cf1bb5d9f252e983404ab9547e627a37d3eb4.tar.zst spectrum-608cf1bb5d9f252e983404ab9547e627a37d3eb4.zip |
release/checks/doc-links.nix: switch to bozohttpd
Newer versions of Ruby no longer include an HTTP server by default. As a side effect, this reduces the total wall clock time reported by wget from 2.8s to 0.07s! Signed-off-by: Alyssa Ross <hi@alyssa.is>
Diffstat (limited to 'release')
-rw-r--r-- | release/checks/doc-links.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/checks/doc-links.nix b/release/checks/doc-links.nix index 171eaf5..3c3c1f1 100644 --- a/release/checks/doc-links.nix +++ b/release/checks/doc-links.nix @@ -2,15 +2,15 @@ # SPDX-FileCopyrightText: 2022 Unikie import ../../lib/eval-config.nix ({ config, ... }: -config.pkgs.callPackage ({ runCommand, ruby, wget }: +config.pkgs.callPackage ({ runCommand, bozohttpd, wget }: runCommand "spectrum-doc-links" { doc = import ../../Documentation { inherit config; }; - nativeBuildInputs = [ ruby wget ]; + nativeBuildInputs = [ bozohttpd wget ]; } '' mkdir root ln -s $doc root/doc - ruby -run -e httpd -- --port 4000 root & + httpd -bI 4000 root wget -r -nv --delete-after --no-parent --retry-connrefused http://localhost:4000/doc/ touch $out '' |