From d737091da31ed676b4b474f92f1687b510769136 Mon Sep 17 00:00:00 2001 From: Mitchell Skaggs Date: Sat, 7 Dec 2024 00:23:56 -0600 Subject: [PATCH] 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 https://github.com/NixOS/nixpkgs/commit/39e63f110e2b8607e4142e1461d08fb20b36497e. --- nixos/modules/misc/man-db.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/misc/man-db.nix b/nixos/modules/misc/man-db.nix index dc6af4fe9692..50ae6d790789 100644 --- a/nixos/modules/misc/man-db.nix +++ b/nixos/modules/misc/man-db.nix @@ -82,6 +82,7 @@ in pkgs.runCommand "man-cache" { nativeBuildInputs = [ buildPackage ]; + preferLocalBuild = true; } '' echo "MANDB_MAP ${cfg.manualPages}/share/man $out" > man.conf