transmission_4: fix build on Darwin (#353676)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user