about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorpiegames <git@piegames.de>2022-12-22 16:24:25 +0100
committerGitHub <noreply@github.com>2022-12-22 16:24:25 +0100
commit9390a34dbbf3df8cbbdf0b563657abfe72e963e2 (patch)
tree555e2c50764f960383e64cd8d39c9a50871a3b03 /pkgs/tools
parent652e92b8064949a11bc193b90b74cb727f2a1405 (diff)
parentc216db090087af6492f43dce9406a9706a245ddd (diff)
Merge pull request #207170: magic-wormhole-rs: 0.5.0 -> 0.6.0
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/networking/magic-wormhole-rs/default.nix16
1 files changed, 13 insertions, 3 deletions
diff --git a/pkgs/tools/networking/magic-wormhole-rs/default.nix b/pkgs/tools/networking/magic-wormhole-rs/default.nix
index 9d82cd36bf520..530ac45ab2b3f 100644
--- a/pkgs/tools/networking/magic-wormhole-rs/default.nix
+++ b/pkgs/tools/networking/magic-wormhole-rs/default.nix
@@ -3,28 +3,38 @@
 , fetchFromGitHub
 , rustPlatform
 , libxcb
+, installShellFiles
 , Security
 , AppKit
 }:
 rustPlatform.buildRustPackage rec {
   pname = "magic-wormhole-rs";
-  version = "0.5.0";
+  version = "0.6.0";
 
   src = fetchFromGitHub {
     owner = "magic-wormhole";
     repo = "magic-wormhole.rs";
     rev = version;
-    sha256 = "sha256-+H/IzMxiGz7UVVkEWpmyBepGET9doQFNDvOCZEMF0p4=";
+    sha256 = "sha256-gNHtlbYWQvgboIG++N1680a4ql66PTF45DJGz521zzk=";
   };
 
-  cargoSha256 = "sha256-pRdb5NSqueHmK5vbZfmbDGOz7NQvmUI/pj9KgShiIn0=";
+  cargoSha256 = "sha256-powJrbVVBWtIg0CV7ZdhaVIQA+VhEPtPCts7f8Sl1VY=";
 
   buildInputs = [ libxcb ]
     ++ lib.optionals stdenv.isDarwin [ Security AppKit ];
 
+  nativeBuildInputs = [ installShellFiles ];
+
   # all tests involve networking and are bound fail
   doCheck = false;
 
+  postInstall = ''
+    installShellCompletion --cmd wormhole-rs \
+      --bash <($out/bin/wormhole-rs completion bash) \
+      --fish <($out/bin/wormhole-rs completion fish) \
+      --zsh <($out/bin/wormhole-rs completion zsh)
+  '';
+
   meta = with lib; {
     description = "Rust implementation of Magic Wormhole, with new features and enhancements";
     homepage = "https://github.com/magic-wormhole/magic-wormhole.rs";