2021-10-23 04:50:03 +02:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "rqbit";
|
2022-12-04 05:20:00 +01:00
|
|
|
version = "2.1.5";
|
2021-10-23 04:50:03 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ikatson";
|
|
|
|
repo = "rqbit";
|
|
|
|
rev = "v${version}";
|
2022-12-04 05:20:00 +01:00
|
|
|
sha256 = "sha256-AzlYeHPCDri/FxAh5R5AES+OAfzhwqB8/ewRwDU1nnU=";
|
2021-10-23 04:50:03 +02:00
|
|
|
};
|
|
|
|
|
2022-12-04 05:20:00 +01:00
|
|
|
cargoSha256 = "sha256-CqEnQNbwiB6+zM8gWhplvFPblKp+mPMAtnHP8JZiKv4=";
|
2021-10-23 04:50:03 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A bittorrent client in Rust";
|
|
|
|
homepage = "https://github.com/ikatson/rqbit";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ marsam ];
|
|
|
|
};
|
|
|
|
}
|