nixpkgs/pkgs/by-name/rq/rqbit/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, darwin }:
2021-10-23 02:50:03 +00:00
rustPlatform.buildRustPackage rec {
pname = "rqbit";
version = "6.0.0";
2021-10-23 02:50:03 +00:00
src = fetchFromGitHub {
owner = "ikatson";
repo = "rqbit";
rev = "v${version}";
hash = "sha256-YOjFCX1Ckk0M2QOGoYKoY80TFnHs00aVJJAWv2RIp4A=";
2021-10-23 02:50:03 +00:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"network-interface-1.1.1" = "sha256-9fWdR5nr73oFP9FzHhDsbA4ifQf3LkzBygspxI9/ufs=";
};
};
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 [ darwin.apple_sdk.frameworks.SystemConfiguration ];
2021-10-23 02:50:03 +00:00
doCheck = false;
meta = with lib; {
description = "Bittorrent client in Rust";
homepage = "https://github.com/ikatson/rqbit";
changelog = "https://github.com/ikatson/rqbit/releases/tag/v${version}";
2021-10-23 02:50:03 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ cafkafk toasteruwu ];
mainProgram = "rqbit";
2021-10-23 02:50:03 +00:00
};
}