1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 06:05:13 +00:00
nixpkgs/pkgs/applications/networking/p2p/synapse-bt/default.nix
Benjamin Hipple 1ed1ac5201 synapse-bt: upgrade cargo fetcher and cargoSha256
Infra upgrade as part of #79975; no functional change expected.
2020-02-15 23:58:50 -05:00

30 lines
819 B
Nix

{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, CoreServices, Security }:
rustPlatform.buildRustPackage rec {
pname = "synapse-bt";
version = "1.0";
src = fetchFromGitHub {
owner = "Luminarys";
repo = "synapse";
rev = version;
sha256 = "01npv3zwia5d534zdwisd9xfng507adv4qkljf8z0zm0khqqn71a";
};
cargoSha256 = "0lhhdzq4sadnp2pnbq309d1mb7ggbf24k5ivlchrjhllbim1wmdz";
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ]
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices Security ];
cargoBuildFlags = [ "--all" ];
meta = with stdenv.lib; {
description = "Flexible and fast BitTorrent daemon";
homepage = https://synapse-bt.org/;
license = licenses.isc;
maintainers = with maintainers; [ dywedir ];
platforms = platforms.all;
};
}