From f0630d69acad11de3da82f2f7c8a73ef5b934742 Mon Sep 17 00:00:00 2001 From: IndeedNotJames Date: Sat, 15 Apr 2023 18:31:03 +0200 Subject: [PATCH] rustic-rs: re-enable zsh shell completions They didn't generate on v0.5.0 due to a bug. v0.5.1 fixed that bug. Slipped through "rustic-rs: 0.5.0 -> 0.5.1" (484af2ff83ec84151e6e4e01bb7c0d147f2d5d89) --- pkgs/tools/backup/rustic-rs/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/backup/rustic-rs/default.nix b/pkgs/tools/backup/rustic-rs/default.nix index da9803c6132b..def401ca187c 100644 --- a/pkgs/tools/backup/rustic-rs/default.nix +++ b/pkgs/tools/backup/rustic-rs/default.nix @@ -17,15 +17,12 @@ rustPlatform.buildRustPackage rec { buildInputs = lib.optionals stdenv.isDarwin [ Security ]; - ## v0.5.0 panics when trying to generate zsh completions due to a bug. - ## See https://github.com/rustic-rs/rustic/issues/533 - ## and https://github.com/rustic-rs/rustic/pull/536 postInstall = '' - for shell in {ba,fi}sh; do + for shell in {ba,fi,z}sh; do $out/bin/rustic completions $shell > rustic.$shell done - installShellCompletion rustic.{ba,fi}sh + installShellCompletion rustic.{ba,fi,z}sh ''; passthru.updateScript = nix-update-script { };