Unverified Commit d737091d authored by Mitchell Skaggs's avatar Mitchell Skaggs
Browse files

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.
parent 511d9c98
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -82,6 +82,7 @@ in
          pkgs.runCommand "man-cache"
            {
              nativeBuildInputs = [ buildPackage ];
              preferLocalBuild = true;
            }
            ''
              echo "MANDB_MAP ${cfg.manualPages}/share/man $out" > man.conf