diff options
Diffstat (limited to 'pkgs/by-name/rq/rqbit/package.nix')
-rw-r--r-- | pkgs/by-name/rq/rqbit/package.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/by-name/rq/rqbit/package.nix b/pkgs/by-name/rq/rqbit/package.nix new file mode 100644 index 00000000000..0505cbb1b69 --- /dev/null +++ b/pkgs/by-name/rq/rqbit/package.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, darwin }: + +rustPlatform.buildRustPackage rec { + pname = "rqbit"; + version = "2.2.2"; + + src = fetchFromGitHub { + owner = "ikatson"; + repo = "rqbit"; + rev = "v${version}"; + hash = "sha256-9yYHxlvRlO8iJ3SPi0+4lEgBgAaqaDffKChqAe4OsYU="; + }; + + cargoHash = "sha256-dUQiW6J3Wycp5D3mAwGwruU6CkQ534OyP1GdsY7jzEw="; + + 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"; + license = licenses.asl20; + maintainers = with maintainers; [ marsam ]; + mainProgram = "rqbit"; + }; +} |