Unverified Commit 8452b3ec authored by Emily's avatar Emily Committed by GitHub
Browse files

transmission_4: fix build on Darwin (#353676)

parents 6549112a 174ef9b8
Loading
Loading
Loading
Loading
+5 −2
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 = [
@@ -145,8 +149,7 @@ stdenv.mkDerivation (finalAttrs: {
  ++ optionals enableQt6 (with qt6Packages; [ qttools qtbase qtsvg ])
  ++ optionals enableGTK3 [ gtkmm3 xorg.libpthreadstubs ]
  ++ optionals enableSystemd [ systemd ]
  ++ optionals stdenv.hostPlatform.isLinux [ inotify-tools ]
  ++ optionals stdenv.hostPlatform.isDarwin [ libiconv Foundation ];
  ++ optionals stdenv.hostPlatform.isLinux [ inotify-tools ];

  postInstall = ''
    mkdir $apparmor