Skip to content

Commit 8452b3e

Browse files
authored
transmission_4: fix build on Darwin (#353676)
2 parents 6549112 + 174ef9b commit 8452b3e

File tree

1 file changed

+5
-2
lines changed
  • pkgs/applications/networking/p2p/transmission

1 file changed

+5
-2
lines changed

pkgs/applications/networking/p2p/transmission/4.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ stdenv.mkDerivation (finalAttrs: {
113113
cmake/FindUtfCpp.cmake
114114
# Upstream uses different config file name.
115115
substituteInPlace CMakeLists.txt --replace 'find_package(UtfCpp)' 'find_package(utf8cpp)'
116+
117+
# Use gettext even on Darwin
118+
substituteInPlace libtransmission/utils.h \
119+
--replace-fail '#if defined(HAVE_GETTEXT) && !defined(__APPLE__)' '#if defined(HAVE_GETTEXT)'
116120
'';
117121

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

151154
postInstall = ''
152155
mkdir $apparmor

0 commit comments

Comments
 (0)