Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / rq / rqbit / package.nix
blobecab085a8e634e8a1f242096f067c634d5916455
1 { lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, darwin }:
3 rustPlatform.buildRustPackage rec {
4   pname = "rqbit";
5   version = "5.6.1";
7   src = fetchFromGitHub {
8     owner = "ikatson";
9     repo = "rqbit";
10     rev = "v${version}";
11     hash = "sha256-SRom/rLyF7R+ESWsAKeLLujvuj5w7+Evlsm+8BKe2f0=";
12   };
14   cargoLock = {
15     lockFile = ./Cargo.lock;
16     outputHashes = {
17       "network-interface-1.1.1" = "sha256-9fWdR5nr73oFP9FzHhDsbA4ifQf3LkzBygspxI9/ufs=";
18     };
19   };
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 ];
26   doCheck = false;
28   meta = with lib; {
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";
35   };