forked from mirrors/nixpkgs
Merge pull request #209224 from wegank/qbittorrent-darwin
qbittorrent: add darwin support
This commit is contained in:
commit
15eb39e56f
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue