From 9a1a872b4a2244e05b7f2705bd090953746bcdab Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 7 Nov 2018 00:53:29 +0100 Subject: [PATCH] qt5.qtbase: add cf-private on darwin Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_NSDate", referenced from: objc-class-ref in qcore_foundation.o "_OBJC_CLASS_$_NSURL", referenced from: objc-class-ref in qcore_foundation.o "_OBJC_CLASS_$_NSData", referenced from: objc-class-ref in qcore_foundation.o "_CFURLCopyResourcePropertyForKey", referenced from: hasResourcePropertyFlag(QFileSystemMetaData const&, QFileSystemEntry const&, __CFString const*) in qfilesystemengine_unix.o "_CFURLCreateBookmarkDataFromFile", referenced from: QFileSystemEngine::getLinkTarget(QFileSystemEntry const&, QFileSystemMetaData&) in qfilesystemengine_unix.o "_kCFURLIsAliasFileKey", referenced from: QFileSystemEngine::fillMetaData(QFileSystemEntry const&, QFileSystemMetaData&, QFlags) in qfilesystemengine_unix.o "_kCFURLIsHiddenKey", referenced from: QFileSystemEngine::fillMetaData(QFileSystemEntry const&, QFileSystemMetaData&, QFlags) in qfilesystemengine_unix.o "_kCFURLIsPackageKey", referenced from: QFileSystemEngine::fillMetaData(QFileSystemEntry const&, QFileSystemMetaData&, QFlags) in qfilesystemengine_unix.o "_CFURLCreateByResolvingBookmarkData", referenced from: QFileSystemEngine::getLinkTarget(QFileSystemEntry const&, QFileSystemMetaData&) in qfilesystemengine_unix.o ld: symbol(s) not found for architecture x86_64 --- pkgs/development/libraries/qt-5/modules/qtbase.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/qt-5/modules/qtbase.nix b/pkgs/development/libraries/qt-5/modules/qtbase.nix index 0d9cb81afda..b8511533a79 100644 --- a/pkgs/development/libraries/qt-5/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-5/modules/qtbase.nix @@ -53,6 +53,7 @@ stdenv.mkDerivation { if stdenv.isDarwin then with darwin.apple_sdk.frameworks; [ + # TODO: move to buildInputs, this should not be propagated. AGL AppKit ApplicationServices Carbon Cocoa CoreAudio CoreBluetooth CoreLocation CoreServices DiskArbitration Foundation OpenGL darwin.libobjc libiconv @@ -77,6 +78,9 @@ stdenv.mkDerivation { [ libinput ] ++ lib.optional withGtk3 gtk3 ) + ++ lib.optional stdenv.isDarwin + # Needed for OBJC_CLASS_$_NSDate symbols. + [ darwin.cf-private ] ++ lib.optional developerBuild gdb ++ lib.optional (cups != null) cups ++ lib.optional (mysql != null) mysql.connector-c