From 4e0f7076f1d48c0458c4ecc1b41c104fe33ce73f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Vask=C3=B3?= <1771332+vlaci@users.noreply.github.com> Date: Thu, 6 Jun 2024 15:40:46 +0200 Subject: [PATCH] just: genereate man pages and shell completions dynamically These assets are no longer present in the repository (cherry picked from commit 669bc7294960d973f43dfee3e200ca06186aee29) --- pkgs/by-name/ju/just/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/ju/just/package.nix b/pkgs/by-name/ju/just/package.nix index 1a24bd46d8fc..c598c2d1ed5a 100644 --- a/pkgs/by-name/ju/just/package.nix +++ b/pkgs/by-name/ju/just/package.nix @@ -56,6 +56,14 @@ rustPlatform.buildRustPackage rec { postBuild = '' cargo run --package generate-book + mkdir -p completions man + + cargo run -- --man > man/just.1 + + for shell in bash fish zsh; do + cargo run -- --completions $shell > completions/just.$shell + done + # No linkcheck in sandbox echo 'optional = true' >> book/en/book.toml mdbook build book/en