diff options
author | Pavel Sobolev <paveloom@riseup.net> | 2023-11-24 12:01:14 +0300 |
---|---|---|
committer | Pavel Sobolev <paveloom@riseup.net> | 2023-11-24 12:01:14 +0300 |
commit | e51f34ed9e75673579e5fe5d80b6b91d3df71dbb (patch) | |
tree | c203822061b73305f1a062637c7c81f8d2351a1c /pkgs/applications/networking/p2p/qbittorrent | |
parent | 869da636fea368dccc4331355894778f64c4a9bb (diff) |
qbittorrent: add the `wrapGAppsHook`
Diffstat (limited to 'pkgs/applications/networking/p2p/qbittorrent')
-rw-r--r-- | pkgs/applications/networking/p2p/qbittorrent/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/networking/p2p/qbittorrent/default.nix b/pkgs/applications/networking/p2p/qbittorrent/default.nix index 968268adbdd38..baf60784cf613 100644 --- a/pkgs/applications/networking/p2p/qbittorrent/default.nix +++ b/pkgs/applications/networking/p2p/qbittorrent/default.nix @@ -10,6 +10,7 @@ , qtbase , qtsvg , qttools +, wrapGAppsHook , wrapQtAppsHook , guiSupport ? true @@ -41,6 +42,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ninja + wrapGAppsHook wrapQtAppsHook ]; @@ -74,6 +76,8 @@ stdenv.mkDerivation rec { "--prefix PATH : ${lib.makeBinPath [ python3 ]}" ]; + dontWrapGApps = true; + postInstall = lib.optionalString stdenv.isDarwin '' APP_NAME=qbittorrent${lib.optionalString (!guiSupport) "-nox"} mkdir -p $out/{Applications,bin} @@ -81,6 +85,10 @@ stdenv.mkDerivation rec { makeWrapper $out/{Applications/$APP_NAME.app/Contents/MacOS,bin}/$APP_NAME ''; + preFixup = '' + qtWrapperArgs+=("''${gappsWrapperArgs[@]}") + ''; + meta = with lib; { description = "Featureful free software BitTorrent client"; homepage = "https://www.qbittorrent.org"; |