glfw: add cf-private on darwin
Undefined symbols for architecture x86_64:
"_NSDefaultRunLoopMode", referenced from:
__glfwPlatformPollEvents in cocoa_window.m.o
__glfwPlatformWaitEvents in cocoa_window.m.o
__glfwPlatformWaitEventsTimeout in cocoa_window.m.o
"_OBJC_CLASS_$_NSArray", referenced from:
objc-class-ref in cocoa_window.m.o
"_OBJC_CLASS_$_NSDate", referenced from:
objc-class-ref in cocoa_window.m.o
ld: symbol(s) not found for architecture x86_64
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{ stdenv, lib, fetchFromGitHub, cmake, libGL, libXrandr, libXinerama, libXcursor, libX11
|
||||
, darwin, fixDarwinDylibNames
|
||||
, cf-private, Cocoa, Kernel, fixDarwinDylibNames
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -21,7 +21,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
libX11 libXrandr libXinerama libXcursor
|
||||
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Cocoa Kernel fixDarwinDylibNames ]);
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
Cocoa Kernel fixDarwinDylibNames
|
||||
# Needed for NSDefaultRunLoopMode symbols.
|
||||
cf-private
|
||||
];
|
||||
|
||||
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user