mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
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
1 changed files with 4 additions and 2 deletions
|
@ -57,13 +57,15 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
# Generate a database of all manpages in ${manualPages}.
|
# 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
|
# Generate a temporary man.conf so mandb knows where to
|
||||||
# write cache files.
|
# write cache files.
|
||||||
echo "MANDB_MAP ${manualPages}/share/man $out" > man.conf
|
echo "MANDB_MAP ${manualPages}/share/man $out" > man.conf
|
||||||
|
|
||||||
# Run mandb to generate cache files:
|
# 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
|
${manualPages}/share/man
|
||||||
'';
|
'';
|
||||||
in ''
|
in ''
|
||||||
|
|
Loading…
Reference in a new issue