diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-02-11 10:28:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-11 10:28:00 +0100 |
commit | ae9b433138cf03df29af811bdec9ab6dd98cd825 (patch) | |
tree | acd23f819c9a45c8314cd36f9390785d3adc4df3 /pkgs | |
parent | 615eb10c14d9bb03fcfd72242516288cc643e914 (diff) | |
parent | 96c05ed392d5f292e24e17926198665a9a61b0db (diff) |
Merge pull request #215786 from wegank/qbittorrent-nox-darwin
qbittorrent-nox: fix build on darwin
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/networking/p2p/qbittorrent/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/applications/networking/p2p/qbittorrent/default.nix b/pkgs/applications/networking/p2p/qbittorrent/default.nix index 757c1652f15c3..64394696caf02 100644 --- a/pkgs/applications/networking/p2p/qbittorrent/default.nix +++ b/pkgs/applications/networking/p2p/qbittorrent/default.nix @@ -10,14 +10,14 @@ assert guiSupport -> (dbus != null); assert trackerSearch -> (python3 != null); mkDerivation rec { - pname = "qbittorrent"; + pname = "qbittorrent" + lib.optionalString (!guiSupport) "-nox"; version = "4.5.0"; src = fetchFromGitHub { owner = "qbittorrent"; repo = "qBittorrent"; rev = "release-${version}"; - sha256 = "sha256-mDjY6OAegMjU/z5+/BUbodxJjntFbk5bsfOfqIWa87o="; + hash = "sha256-mDjY6OAegMjU/z5+/BUbodxJjntFbk5bsfOfqIWa87o="; }; enableParallelBuilding = true; @@ -43,8 +43,8 @@ mkDerivation rec { 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 + cp -R src/${pname}.app $out/Applications + makeWrapper $out/{Applications/${pname}.app/Contents/MacOS,bin}/${pname} ''; meta = with lib; { |