Skip to content

Commit

Permalink
Merge pull request #209224 from wegank/qbittorrent-darwin
Browse files Browse the repository at this point in the history
qbittorrent: add darwin support
  • Loading branch information
SuperSandro2000 authored Jan 18, 2023
2 parents 028d747 + fe496f5 commit 15eb39e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions pkgs/applications/networking/p2p/qbittorrent/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ mkDerivation, lib, fetchFromGitHub, pkg-config
{ mkDerivation, lib, stdenv, fetchFromGitHub, pkg-config
, boost, libtorrent-rasterbar, qtbase, qttools, qtsvg
, debugSupport ? false
, guiSupport ? true, dbus ? null # GUI (disable to run headless)
Expand Down Expand Up @@ -42,12 +42,18 @@ mkDerivation rec {

qtWrapperArgs = optional trackerSearch "--prefix PATH : ${makeBinPath [ python3 ]}";

postInstall = lib.optionalString stdenv.isDarwin ''
mkdir -p $out/{Applications,bin}
cp -R src/qbittorrent.app $out/Applications
makeWrapper $out/{Applications/qbittorrent.app/Contents/MacOS,bin}/qbittorrent
'';

meta = {
description = "Featureful free software BitTorrent client";
homepage = "https://www.qbittorrent.org/";
changelog = "https://github.com/qbittorrent/qBittorrent/blob/release-${version}/Changelog";
license = licenses.gpl2Plus;
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = with maintainers; [ Anton-Latukha ];
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ in stdenv.mkDerivation {
];

meta = with lib; {
broken = stdenv.isDarwin;
homepage = "https://libtorrent.org/";
description = "A C++ BitTorrent implementation focusing on efficiency and scalability";
license = licenses.bsd3;
Expand Down
1 change: 1 addition & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21475,6 +21475,7 @@ with pkgs;
libtomcrypt = callPackage ../development/libraries/libtomcrypt { };

libtorrent-rasterbar-2_0_x = callPackage ../development/libraries/libtorrent-rasterbar {
stdenv = if stdenv.isDarwin then llvmPackages_14.stdenv else stdenv;
inherit (darwin.apple_sdk.frameworks) SystemConfiguration;
python = python3;
};
Expand Down

0 comments on commit 15eb39e

Please sign in to comment.