transmission_4: fix build on Darwin

Transmission detects gettext and tries to enable support on Darwin but
fails without this substitution.
This commit is contained in:
Randy Eckenrode
2024-11-04 12:48:08 -05:00
parent 2e99cc48c7
commit 174ef9b84a
@@ -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 = [