Skip to content

Commit

Permalink
build(flake): fix manual version
Browse files Browse the repository at this point in the history
Ref: https://github.com/NixOS/nixpkgs/pull/345185/files
Co-authored-by: Stephen Huan <stephen.huan@cgdct.moe>
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
  • Loading branch information
cafkafk and stephen-huan committed Sep 29, 2024
1 parent 41ac88b commit 2d1c966
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
# For `nix build` `nix run`, & `nix profile install`:
default = naersk'.buildPackage rec {
pname = "eza";
version = "latest";
version = "git";

src = ./.;
doCheck = true; # run `cargo test` on build
Expand All @@ -120,9 +120,10 @@
buildFeatures = "git";

postInstall = ''
pandoc --standalone -f markdown -t man <(cat "man/eza.1.md" | sed "s/\$version/${version}/g") > man/eza.1
pandoc --standalone -f markdown -t man <(cat "man/eza_colors.5.md" | sed "s/\$version/${version}/g") > man/eza_colors.5
pandoc --standalone -f markdown -t man <(cat "man/eza_colors-explanation.5.md" | sed "s/\$version/${version}/g")> man/eza_colors-explanation.5
for page in eza.1 eza_colors.5 eza_colors-explanation.5; do
sed "s/\$version/${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 \
Expand Down

0 comments on commit 2d1c966

Please sign in to comment.