2021-10-23 02:50:03 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "rqbit";
|
2023-07-12 04:20:00 +00:00
|
|
|
version = "2.2.1";
|
2021-10-23 02:50:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ikatson";
|
|
|
|
repo = "rqbit";
|
|
|
|
rev = "v${version}";
|
2023-07-12 04:20:00 +00:00
|
|
|
hash = "sha256-7n+T+y60RjmZC7bE96Ljg0xVg4bSzV/LFgezTld4zfI=";
|
2021-10-23 02:50:03 +00:00
|
|
|
};
|
|
|
|
|
2023-07-12 04:20:00 +00:00
|
|
|
cargoHash = "sha256-hcuZ4hqGJT/O7vFefKPGZlkqhdsAl5LGAcSRQAEopnM=";
|
2021-10-23 02:50:03 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|