Skip to content

Commit

Permalink
Merge pull request #215786 from wegank/qbittorrent-nox-darwin
Browse files Browse the repository at this point in the history
qbittorrent-nox: fix build on darwin
  • Loading branch information
wegank authored Feb 11, 2023
2 parents 615eb10 + 96c05ed commit ae9b433
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/applications/networking/p2p/qbittorrent/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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; {
Expand Down

0 comments on commit ae9b433

Please sign in to comment.