From 2d1c96643fca8828cdeab877d7df46eea0f29881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christina=20S=C3=B8rensen?= Date: Sun, 29 Sep 2024 05:08:21 +0200 Subject: [PATCH] build(flake): fix manual version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref: https://github.com/NixOS/nixpkgs/pull/345185/files Co-authored-by: Stephen Huan Signed-off-by: Christina Sørensen --- flake.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 3d0dcb3a4..4bf6b1d8a 100644 --- a/flake.nix +++ b/flake.nix @@ -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 @@ -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 \