Skip to content

Commit

Permalink
transmission_4: fix build on Darwin
Browse files Browse the repository at this point in the history
Transmission detects gettext and tries to enable support on Darwin but
fails without this substitution.
  • Loading branch information
reckenrode committed Nov 4, 2024
1 parent 2e99cc4 commit 174ef9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 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

0 comments on commit 174ef9b

Please sign in to comment.