mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
45b5c34b2b
Diff: https://github.com/ikatson/rqbit/compare/v5.4.1...v5.4.2 Changelog: https://github.com/ikatson/rqbit/releases/tag/v5.4.2
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, darwin }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rqbit";
|
|
version = "5.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ikatson";
|
|
repo = "rqbit";
|
|
rev = "v${version}";
|
|
hash = "sha256-ZC68RQi0UcdALKVgwRUyO0+ZmKtGMjudYQabsAnghzg=";
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"network-interface-1.1.1" = "sha256-9fWdR5nr73oFP9FzHhDsbA4ifQf3LkzBygspxI9/ufs=";
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
|
|
|
|
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "A bittorrent client in Rust";
|
|
homepage = "https://github.com/ikatson/rqbit";
|
|
changelog = "https://github.com/ikatson/rqbit/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ marsam ];
|
|
mainProgram = "rqbit";
|
|
};
|
|
}
|