2019-06-01 18:21:37 +02:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, CoreServices, Security }:
|
2018-06-03 19:10:38 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-06-01 18:21:37 +02:00
|
|
|
pname = "synapse-bt";
|
|
|
|
version = "unstable-2019-05-26";
|
2018-06-03 19:10:38 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Luminarys";
|
|
|
|
repo = "synapse";
|
2019-06-01 18:21:37 +02:00
|
|
|
rev = "4a6e6c33b4c36eca89d216906d615797ba9a519e";
|
|
|
|
sha256 = "0110y3lkzfhgvmdg6q71jyp5q9jjp2bzdb6cwnkp8c734c2k1gfw";
|
2018-06-03 19:10:38 +02:00
|
|
|
};
|
|
|
|
|
2019-06-01 18:21:37 +02:00
|
|
|
cargoSha256 = "0m4jigz6la3mf4yq217849ilcncb7d97mqyw2qicff4rbscdgf6h";
|
2018-06-03 19:10:38 +02:00
|
|
|
|
2019-03-12 15:05:31 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2019-06-01 18:21:37 +02:00
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices Security ];
|
2018-06-03 19:10:38 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|