Merge pull request #209224 from wegank/qbittorrent-darwin

qbittorrent: add darwin support
This commit is contained in:
Sandro 2023-01-18 14:32:04 +01:00 committed by GitHub
commit 15eb39e56f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View file

@ -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)
@ -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 ];
};
}

View file

@ -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;

View file

@ -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;
};