mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
30 lines
819 B
Nix
30 lines
819 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, CoreServices, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "synapse-bt";
|
|
version = "1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Luminarys";
|
|
repo = "synapse";
|
|
rev = version;
|
|
sha256 = "01npv3zwia5d534zdwisd9xfng507adv4qkljf8z0zm0khqqn71a";
|
|
};
|
|
|
|
cargoSha256 = "0m4jigz6la3mf4yq217849ilcncb7d97mqyw2qicff4rbscdgf6h";
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ openssl ]
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices Security ];
|
|
|
|
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;
|
|
};
|
|
}
|