From 4542db605602898fe0c431e19f01e1af2865dae8 Mon Sep 17 00:00:00 2001 From: Yureka Date: Tue, 1 Aug 2023 12:56:37 +0200 Subject: [PATCH] man: fix caches generation in cross-compiled system (#4294) Co-authored-by: Your Name --- modules/programs/man.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/programs/man.nix b/modules/programs/man.nix index 49ea7485..2de4bcc6 100644 --- a/modules/programs/man.nix +++ b/modules/programs/man.nix @@ -57,13 +57,15 @@ in { }; # Generate a database of all manpages in ${manualPages}. - manualCache = pkgs.runCommandLocal "man-cache" { } '' + manualCache = pkgs.runCommandLocal "man-cache" { + nativeBuildInputs = [ cfg.package ]; + } '' # Generate a temporary man.conf so mandb knows where to # write cache files. echo "MANDB_MAP ${manualPages}/share/man $out" > man.conf # Run mandb to generate cache files: - ${cfg.package}/bin/mandb -C man.conf --no-straycats --create \ + mandb -C man.conf --no-straycats --create \ ${manualPages}/share/man ''; in ''