eza: fix version in man page (#345185)

Copies our upstream manual generation process to nixpkgs eza.
This commit is contained in:
Christina Sørensen 2024-09-29 05:00:44 +02:00 committed by GitHub
commit 3a6faa876e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,9 +38,10 @@ rustPlatform.buildRustPackage rec {
outputs = [ "out" "man" ];
postInstall = ''
pandoc --standalone -f markdown -t man man/eza.1.md > man/eza.1
pandoc --standalone -f markdown -t man man/eza_colors.5.md > man/eza_colors.5
pandoc --standalone -f markdown -t man man/eza_colors-explanation.5.md > man/eza_colors-explanation.5
for page in eza.1 eza_colors.5 eza_colors-explanation.5; do
sed "s/\$version/v${version}/g" "man/$page.md" |
pandoc --standalone -f markdown -t man >"man/$page"
done
installManPage man/eza.1 man/eza_colors.5 man/eza_colors-explanation.5
installShellCompletion \
--bash completions/bash/eza \