blob: 742292e168bbaba251ae4d05a680b235f9b85210 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, libxcb
, Security
, AppKit
}:
rustPlatform.buildRustPackage rec {
pname = "magic-wormhole-rs";
version = "0.5.0";
src = fetchFromGitHub {
owner = "magic-wormhole";
repo = "magic-wormhole.rs";
rev = version;
sha256 = "sha256-+H/IzMxiGz7UVVkEWpmyBepGET9doQFNDvOCZEMF0p4=";
};
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";
};
}
|