summary refs log tree commit diff
path: root/pkgs/tools/networking/magic-wormhole-rs/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/networking/magic-wormhole-rs/default.nix')
-rw-r--r--pkgs/tools/networking/magic-wormhole-rs/default.nix19
1 files changed, 12 insertions, 7 deletions
diff --git a/pkgs/tools/networking/magic-wormhole-rs/default.nix b/pkgs/tools/networking/magic-wormhole-rs/default.nix
index 3d9e20d14dc..742292e168b 100644
--- a/pkgs/tools/networking/magic-wormhole-rs/default.nix
+++ b/pkgs/tools/networking/magic-wormhole-rs/default.nix
@@ -2,31 +2,36 @@
 , stdenv
 , fetchFromGitHub
 , rustPlatform
+, libxcb
+, Security
+, AppKit
 }:
 rustPlatform.buildRustPackage rec {
   pname = "magic-wormhole-rs";
-  version = "0.3.0";
+  version = "0.5.0";
 
   src = fetchFromGitHub {
     owner = "magic-wormhole";
     repo = "magic-wormhole.rs";
     rev = version;
-    sha256 = "sha256-i4vJ6HmtM42m1x1UtOq9xlmhYIa5ZKXUm1rGFNRprmY=";
+    sha256 = "sha256-+H/IzMxiGz7UVVkEWpmyBepGET9doQFNDvOCZEMF0p4=";
   };
 
-  # this patch serves as a workaround for the problems of cargo-vendor described in
-  # https://github.com/NixOS/nixpkgs/issues/30742
-  # and can probably be removed once the issue is resolved
-  cargoPatches = [ ./Cargo.toml.patch ];
-  cargoSha256 = "sha256-ujwvwr4GR/rQWnXFfL8sqPyz4QvGeOxwBrT+gf+vjsI=";
+  cargoSha256 = "sha256-pRdb5NSqueHmK5vbZfmbDGOz7NQvmUI/pj9KgShiIn0=";
+
+  buildInputs = [ libxcb ]
+    ++ lib.optionals stdenv.isDarwin [ Security AppKit ];
 
   # all tests involve networking and are bound fail
   doCheck = false;
 
   meta = with lib; {
+    broken = stdenv.isDarwin;
     description = "Rust implementation of Magic Wormhole, with new features and enhancements";
     homepage = "https://github.com/magic-wormhole/magic-wormhole.rs";
+    changelog = "https://github.com/magic-wormhole/magic-wormhole.rs/raw/${version}/changelog.md";
     license = licenses.eupl12;
     maintainers = with maintainers; [ zeri piegames ];
+    mainProgram = "wormhole-rs";
   };
 }