nixpkgs/pkgs/applications/networking/p2p/synapse-bt/default.nix

29 lines
781 B
Nix
Raw Normal View History

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