diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-01-18 14:32:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-18 14:32:04 +0100 |
commit | 15eb39e56f67a70ca3628ebf03c0c3c55c41aa35 (patch) | |
tree | 8d31ee6ba0453d612412b4fd3871162c0c4b33d9 /pkgs/applications/networking/p2p | |
parent | 028d747628035bd11d30db6648ff9417effc674b (diff) | |
parent | fe496f58976116d520222f430ebc4690360259fd (diff) |
Merge pull request #209224 from wegank/qbittorrent-darwin
qbittorrent: add darwin support
Diffstat (limited to 'pkgs/applications/networking/p2p')
-rw-r--r-- | pkgs/applications/networking/p2p/qbittorrent/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/applications/networking/p2p/qbittorrent/default.nix b/pkgs/applications/networking/p2p/qbittorrent/default.nix index 1b4f12874dbda..76fc70b3bad0f 100644 --- a/pkgs/applications/networking/p2p/qbittorrent/default.nix +++ b/pkgs/applications/networking/p2p/qbittorrent/default.nix @@ -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 ]; }; } |