summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2022-11-12 18:33:13 +0000
committerBernardo Meurer <bernardo@meurer.org>2022-11-12 18:33:13 +0000
commit39e63f110e2b8607e4142e1461d08fb20b36497e (patch)
tree4c7ea1ef0afeb36eebd66ed9bf7ee3d58b86e865 /nixos
parentedaccfb61ab403071900a35f88922b24812ef0d3 (diff)
nixos/man-db: allow man-cache to be fetched from cache
Currently, we build `man-cache` with `runCommandLocal`, which causes it
to get re-built locally instead of fetched from cache. While the
resulting derivation might be small, it does take a fair bit of time to
build for all my systems, and would be _far_ quicker to fetch.

With this change, we use `runCommand` instead of `runCommandLocal`,
allowing it to get fetched from cache instead of rebuilt for all hosts.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/misc/man-db.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/misc/man-db.nix b/nixos/modules/misc/man-db.nix
index 524199ac409cc..08fb91b3994c4 100644
--- a/nixos/modules/misc/man-db.nix
+++ b/nixos/modules/misc/man-db.nix
@@ -52,7 +52,7 @@ in
     environment.systemPackages = [ cfg.package ];
     environment.etc."man_db.conf".text =
       let
-        manualCache = pkgs.runCommandLocal "man-cache" { } ''
+        manualCache = pkgs.runCommand "man-cache" { } ''
           echo "MANDB_MAP ${cfg.manualPages}/share/man $out" > man.conf
           ${cfg.package}/bin/mandb -C man.conf -psc >/dev/null 2>&1
         '';