2019-06-01 09:21:37 -07:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, CoreServices, Security }:
|
2018-06-03 10:10:38 -07:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-06-01 09:21:37 -07:00
|
|
|
pname = "synapse-bt";
|
2019-06-09 14:11:12 -07:00
|
|
|
version = "1.0";
|
2018-06-03 10:10:38 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Luminarys";
|
|
|
|
repo = "synapse";
|
2019-06-09 14:11:12 -07:00
|
|
|
rev = version;
|
|
|
|
sha256 = "01npv3zwia5d534zdwisd9xfng507adv4qkljf8z0zm0khqqn71a";
|
2018-06-03 10:10:38 -07:00
|
|
|
};
|
|
|
|
|
2020-02-15 20:58:50 -08:00
|
|
|
cargoSha256 = "0lhhdzq4sadnp2pnbq309d1mb7ggbf24k5ivlchrjhllbim1wmdz";
|
2018-06-03 10:10:38 -07:00
|
|
|
|
2019-03-12 07:05:31 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2019-06-01 09:21:37 -07:00
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices Security ];
|
2018-06-03 10:10:38 -07:00
|
|
|
|
|
|
|
cargoBuildFlags = [ "--all" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Flexible and fast BitTorrent daemon";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://synapse-bt.org/";
|
2018-06-03 10:10:38 -07:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ dywedir ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|