Skip to content

Commit

Permalink
nixos/man-db: set preferLocalBuild = true
Browse files Browse the repository at this point in the history
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 39e63f1.
  • Loading branch information
magneticflux- committed Dec 20, 2024
1 parent d184f19 commit 85c4232
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/misc/man-db.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ in
pkgs.runCommand "man-cache"
{
nativeBuildInputs = [ cfg.package ];
preferLocalBuild = true;
}
''
echo "MANDB_MAP ${cfg.manualPages}/share/man $out" > man.conf
Expand Down

0 comments on commit 85c4232

Please sign in to comment.