2018-06-10 00:14:38 +02:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, Security }:
|
2018-06-03 19:10:38 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
name = "synapse-bt-unstable-${version}";
|
2018-12-29 10:33:45 +01:00
|
|
|
version = "2018-10-17";
|
2018-06-03 19:10:38 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Luminarys";
|
|
|
|
repo = "synapse";
|
2018-12-29 10:33:45 +01:00
|
|
|
rev = "76d5e9a23ad00c25cfd0469b1adb479b9ded113a";
|
|
|
|
sha256 = "1lsfvcsmbsg51v8c2hkpwkx0zg25sdjc3q7x72b5bwwnw9l0iglz";
|
2018-06-03 19:10:38 +02:00
|
|
|
};
|
|
|
|
|
2019-05-25 13:03:08 +02:00
|
|
|
cargoSha256 = "0ay6k52x6lzyvmzmlzrjfyqmify9wz74hxsdh8mhrhlpcvll17h1";
|
2018-06-03 19:10:38 +02:00
|
|
|
|
2019-03-12 15:05:31 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ openssl ] ++ stdenv.lib.optional stdenv.isDarwin 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;
|
|
|
|
};
|
|
|
|
}
|