From 39e63f110e2b8607e4142e1461d08fb20b36497e Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Sat, 12 Nov 2022 18:33:13 +0000 Subject: [PATCH] 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. --- nixos/modules/misc/man-db.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/misc/man-db.nix b/nixos/modules/misc/man-db.nix index 524199ac409c..08fb91b3994c 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 '';