1 { lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, darwin }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 hash = "sha256-SRom/rLyF7R+ESWsAKeLLujvuj5w7+Evlsm+8BKe2f0=";
15 lockFile = ./Cargo.lock;
17 "network-interface-1.1.1" = "sha256-9fWdR5nr73oFP9FzHhDsbA4ifQf3LkzBygspxI9/ufs=";
21 nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
23 buildInputs = lib.optionals stdenv.isLinux [ openssl ]
24 ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
29 description = "Bittorrent client in Rust";
30 homepage = "https://github.com/ikatson/rqbit";
31 changelog = "https://github.com/ikatson/rqbit/releases/tag/v${version}";
32 license = licenses.asl20;
33 maintainers = with maintainers; [ cafkafk ];
34 mainProgram = "rqbit";