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:
parent
78623f492c
commit
388a868d6d
2 changed files with 10 additions and 3 deletions
|
@ -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" ];
|
||||
|
||||
|
|
|
@ -9731,7 +9731,10 @@ with pkgs;
|
|||
|
||||
glfw = glfw3;
|
||||
glfw2 = callPackage ../development/libraries/glfw/2.x.nix { };
|
||||
glfw3 = callPackage ../development/libraries/glfw/3.x.nix { };
|
||||
glfw3 = callPackage ../development/libraries/glfw/3.x.nix {
|
||||
inherit (darwin) cf-private;
|
||||
inherit (darwin.apple_sdk.frameworks) Cocoa Kernel;
|
||||
};
|
||||
|
||||
glibc = callPackage ../development/libraries/glibc {
|
||||
installLocales = config.glibc.locales or false;
|
||||
|
|
Loading…
Reference in a new issue