linkchecker: disable because of performance issues

This commit is contained in:
DavHau 2023-10-12 00:51:38 +02:00
parent 5798a23484
commit 1caf997f69

View File

@ -22,26 +22,26 @@
upstream, so that it's quick and can run often without blocking the upstream, so that it's quick and can run often without blocking the
iteration cycle unnecessarily. iteration cycle unnecessarily.
*/ */
checks.linkcheck = # checks.linkcheck =
pkgs.runCommand "linkcheck" # pkgs.runCommand "linkcheck"
{ # {
nativeBuildInputs = [pkgs.linkchecker pkgs.python3]; # nativeBuildInputs = [pkgs.linkchecker pkgs.python3];
site = config.packages.website; # site = config.packages.website;
} '' # } ''
# https://linkchecker.github.io/linkchecker/man/linkcheckerrc.html # # https://linkchecker.github.io/linkchecker/man/linkcheckerrc.html
cat >>$TMPDIR/linkcheckrc <<EOF # cat >>$TMPDIR/linkcheckrc <<EOF
[checking] # [checking]
threads=''${NIX_BUILD_CORES:-4} # threads=100
[AnchorCheck] # [AnchorCheck]
EOF # EOF
echo Checking $site # echo Checking $site
linkchecker -f $TMPDIR/linkcheckrc $site/ # linkchecker -f $TMPDIR/linkcheckrc $site/
touch $out # touch $out
''; # '';
packages = { packages = {
website = pkgs.stdenvNoCC.mkDerivation { website = pkgs.stdenvNoCC.mkDerivation {