Skip to content

Commit

Permalink
transmission_4: fix build on Darwin (#353676)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy authored Nov 4, 2024
2 parents 6549112 + 174ef9b commit 8452b3e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/applications/networking/p2p/transmission/4.nix
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ stdenv.mkDerivation (finalAttrs: {
cmake/FindUtfCpp.cmake
# Upstream uses different config file name.
substituteInPlace CMakeLists.txt --replace 'find_package(UtfCpp)' 'find_package(utf8cpp)'
# Use gettext even on Darwin
substituteInPlace libtransmission/utils.h \
--replace-fail '#if defined(HAVE_GETTEXT) && !defined(__APPLE__)' '#if defined(HAVE_GETTEXT)'
'';

nativeBuildInputs = [
Expand Down Expand Up @@ -145,8 +149,7 @@ stdenv.mkDerivation (finalAttrs: {
++ optionals enableQt6 (with qt6Packages; [ qttools qtbase qtsvg ])
++ optionals enableGTK3 [ gtkmm3 xorg.libpthreadstubs ]
++ optionals enableSystemd [ systemd ]
++ optionals stdenv.hostPlatform.isLinux [ inotify-tools ]
++ optionals stdenv.hostPlatform.isDarwin [ libiconv Foundation ];
++ optionals stdenv.hostPlatform.isLinux [ inotify-tools ];

postInstall = ''
mkdir $apparmor
Expand Down

0 comments on commit 8452b3e

Please sign in to comment.