man: fix caches generation in cross-compiled system (#4294)
Co-authored-by: Your Name <you@example.com>
This commit is contained in:
parent
89df56fefe
commit
4542db6056
|
@ -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 ''
|
||||
|
|
Loading…
Reference in a new issue