summary refs log tree commit diff
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2021-10-22 21:50:03 -0500
committerMario Rodas <marsam@users.noreply.github.com>2021-10-22 21:50:03 -0500
commit36cee8e9e59e7990a014a7c16a4e45d498856332 (patch)
tree4208c0a8b19b01ab9f128a99782b2d0b82272e68
parent663a0f328ff5388c98ebe58715b72cf4b0f546ac (diff)
downloadnixpkgs-36cee8e9e59e7990a014a7c16a4e45d498856332.tar
nixpkgs-36cee8e9e59e7990a014a7c16a4e45d498856332.tar.gz
nixpkgs-36cee8e9e59e7990a014a7c16a4e45d498856332.tar.bz2
nixpkgs-36cee8e9e59e7990a014a7c16a4e45d498856332.tar.lz
nixpkgs-36cee8e9e59e7990a014a7c16a4e45d498856332.tar.xz
nixpkgs-36cee8e9e59e7990a014a7c16a4e45d498856332.tar.zst
nixpkgs-36cee8e9e59e7990a014a7c16a4e45d498856332.zip
rqbit: init at 2.0.0
-rw-r--r--pkgs/applications/networking/p2p/rqbit/default.nix29
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/networking/p2p/rqbit/default.nix b/pkgs/applications/networking/p2p/rqbit/default.nix
new file mode 100644
index 00000000000..0a77a64916e
--- /dev/null
+++ b/pkgs/applications/networking/p2p/rqbit/default.nix
@@ -0,0 +1,29 @@
+{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "rqbit";
+  version = "2.1.0";
+
+  src = fetchFromGitHub {
+    owner = "ikatson";
+    repo = "rqbit";
+    rev = "v${version}";
+    sha256 = "1dyf1sjfiwrrigk1186mzvx5vn196h45imvily394ky2di633av5";
+  };
+
+  cargoSha256 = "02z5gdmir1x80axnv516hs00478c7zbb30rdsbs966yh1725w12z";
+
+  nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
+
+  buildInputs = lib.optionals stdenv.isLinux [ openssl ]
+    ++ lib.optionals stdenv.isDarwin [ Security ];
+
+  doCheck = false;
+
+  meta = with lib; {
+    description = "A bittorrent client in Rust";
+    homepage = "https://github.com/ikatson/rqbit";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ marsam ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 2cfdcf014b2..f9afb566424 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -26795,6 +26795,10 @@ with pkgs;
 
   qemacs = callPackage ../applications/editors/qemacs { };
 
+  rqbit = callPackage ../applications/networking/p2p/rqbit {
+    inherit (darwin.apple_sdk.frameworks) Security;
+  };
+
   rssguard = libsForQt5.callPackage ../applications/networking/feedreaders/rssguard { };
 
   scudcloud = callPackage ../applications/networking/instant-messengers/scudcloud { };