Skip to content

Commit 174ef9b

Browse files
committed
transmission_4: fix build on Darwin
Transmission detects gettext and tries to enable support on Darwin but fails without this substitution.
1 parent 2e99cc4 commit 174ef9b

File tree

1 file changed

+4
-0
lines changed
  • pkgs/applications/networking/p2p/transmission

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 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 = [

0 commit comments

Comments
 (0)