about summary refs log tree commit diff
path: root/pkgs/tools/backup/rustic-rs
diff options
context:
space:
mode:
authorIndeedNotJames <git@indeednotjames.com>2023-03-28 14:29:39 +0200
committerIndeedNotJames <git@indeednotjames.com>2023-03-28 14:29:39 +0200
commitc09ecd65bf98a764f6e4008d4f21c21e688cea21 (patch)
treec6ab605863d2b03da8eb0d1506b26af2bd4e72dc /pkgs/tools/backup/rustic-rs
parent4bb072f0a8b267613c127684e099a70e1f6ff106 (diff)
rustic-rs: 0.4.4 -> 0.5.0
Temporarily removed zsh shell completions, as they don't generate due to a bug.

https://github.com/rustic-rs/rustic/blob/v0.5.0/changelog/0.5.0.txt
https://github.com/rustic-rs/rustic/releases/tag/v0.5.0
diff: https://github.com/rustic-rs/rustic/compare/v0.4.4...v0.5.0
Diffstat (limited to 'pkgs/tools/backup/rustic-rs')
-rw-r--r--pkgs/tools/backup/rustic-rs/default.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/tools/backup/rustic-rs/default.nix b/pkgs/tools/backup/rustic-rs/default.nix
index 559fcf2a0ff9a..5487a26417505 100644
--- a/pkgs/tools/backup/rustic-rs/default.nix
+++ b/pkgs/tools/backup/rustic-rs/default.nix
@@ -2,27 +2,30 @@
 
 rustPlatform.buildRustPackage rec {
   pname = "rustic-rs";
-  version = "0.4.4";
+  version = "0.5.0";
 
   src = fetchFromGitHub {
     owner = "rustic-rs";
     repo = "rustic";
     rev = "v${version}";
-    hash = "sha256-irN5enJ0nyyzrLvnLXm7YhyEJ3nz9PQukzAfUrKmOzY=";
+    hash = "sha256-r4hOjX/LKv2wX720FMEztUo9rf2hDBLfcHtENSZNA3U=";
   };
 
-  cargoHash = "sha256-wJuWeoS45ikP12S2o6aB2Iogw5HomXzCIjkFbp3rSR4=";
+  cargoHash = "sha256-sNxD8rDkfUw5aVhRYpYftpPMiWhiTYDdShlVZvx2BHk=";
 
   nativeBuildInputs = [ installShellFiles ];
 
   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,z}sh; do
+    for shell in {ba,fi}sh; do
       $out/bin/rustic completions $shell > rustic.$shell
     done
 
-    installShellCompletion rustic.{ba,fi,z}sh
+    installShellCompletion rustic.{ba,fi}sh
   '';
 
   meta = {