mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
Merge pull request #207170: magic-wormhole-rs: 0.5.0 -> 0.6.0
This commit is contained in:
commit
9390a34dbb
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user