nixos/man-db: set preferLocalBuild = true

When we _must_ build, prefer building locally since we probably already have the manpages here. Otherwise, Nix would send all the manpages to a remote builder which isn't likely to be much faster since building the DB is single-threaded. Hopefully a best-of-both worlds between keeping or removing 39e63f110e.
This commit is contained in:
Mitchell Skaggs
2024-12-07 00:23:56 -06:00
parent 511d9c9836
commit d737091da3

View File

@@ -82,6 +82,7 @@ in
pkgs.runCommand "man-cache" pkgs.runCommand "man-cache"
{ {
nativeBuildInputs = [ buildPackage ]; nativeBuildInputs = [ buildPackage ];
preferLocalBuild = true;
} }
'' ''
echo "MANDB_MAP ${cfg.manualPages}/share/man $out" > man.conf echo "MANDB_MAP ${cfg.manualPages}/share/man $out" > man.conf