1
0
Fork 0
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:
Yureka 2023-08-01 12:56:37 +02:00 committed by GitHub
parent 89df56fefe
commit 4542db6056
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ''