From 85c4232fe7a442709f18750ca8e270a6c5704f75 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 56b935c975976e..6e7ff9cba01863 100644 --- a/nixos/modules/misc/man-db.nix +++ b/nixos/modules/misc/man-db.nix @@ -73,6 +73,7 @@ in pkgs.runCommand "man-cache" { nativeBuildInputs = [ cfg.package ]; + preferLocalBuild = true; } '' echo "MANDB_MAP ${cfg.manualPages}/share/man $out" > man.conf