nixpkgs/pkgs/tools/networking/magic-wormhole-rs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
978 B
Nix
Raw Normal View History

2022-03-16 19:08:48 +00:00
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
2022-04-30 00:29:54 +00:00
pname = "magic-wormhole-rs";
2022-03-16 19:08:48 +00:00
version = "0.3.0";
src = fetchFromGitHub {
owner = "magic-wormhole";
repo = "magic-wormhole.rs";
rev = version;
sha256 = "sha256-i4vJ6HmtM42m1x1UtOq9xlmhYIa5ZKXUm1rGFNRprmY=";
};
# 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 ];
2022-04-30 00:29:54 +00:00
cargoSha256 = "sha256-ujwvwr4GR/rQWnXFfL8sqPyz4QvGeOxwBrT+gf+vjsI=";
2022-03-16 19:08:48 +00:00
# all tests involve networking and are bound fail
doCheck = false;
meta = with lib; {
description = "Rust implementation of Magic Wormhole, with new features and enhancements";
homepage = "https://github.com/magic-wormhole/magic-wormhole.rs";
license = licenses.eupl12;
maintainers = with maintainers; [ zeri piegames ];
};
}