nixpkgs/pkgs/applications/networking/p2p/rqbit/default.nix

30 lines
802 B
Nix
Raw Normal View History

2021-10-23 02:50:03 +00:00
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security }:
rustPlatform.buildRustPackage rec {
pname = "rqbit";
2021-10-30 04:20:00 +00:00
version = "2.1.2";
2021-10-23 02:50:03 +00:00
src = fetchFromGitHub {
owner = "ikatson";
repo = "rqbit";
rev = "v${version}";
2021-10-30 04:20:00 +00:00
sha256 = "0b9wxjwnhhs3vi1x55isdqck67lh1r7nf3dwmhlwcg5887smwp5c";
2021-10-23 02:50:03 +00:00
};
2021-10-30 04:20:00 +00:00
cargoSha256 = "1s278d73mwqpq3n5vmrn5jb6g5dafaaplnhs8346pwcc6y16w3d3";
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 ];
};
}