Unverified Commit fcc7288c authored by Norbert Melzer's avatar Norbert Melzer Committed by GitHub
Browse files

Merge pull request #226304 from IndeedNotJames/rustic-rs

parents 726da3a8 f0630d69
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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 { };