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