Unverified Commit 174ef9b8 authored by Randy Eckenrode's avatar Randy Eckenrode
Browse files

transmission_4: fix build on Darwin

Transmission detects gettext and tries to enable support on Darwin but
fails without this substitution.
parent 2e99cc48
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 = [