git.iko.soy/typeable/nixpkgs
on master help sign in
SDL: include cf-private on darwin

It's not included implicitly by the frameworks anymore. Undefined symbols for architecture x86_64: "_NSDefaultRunLoopMode", referenced from: _QZ_PumpEvents in SDL_QuartzEvents.o "_OBJC_CLASS_$_NSArray", referenced from: objc-class-ref in SDL_QuartzEvents.o "_OBJC_CLASS_$_NSDate", referenced from: objc-class-ref in SDL_QuartzEvents.o ld: symbol(s) not found for architecture x86_64

commit7edfded9c3936f50fb227aabc6423f2736f07eae authorDaiderd Jordan <daiderd@gmail.com> dateMon 5 Nov 2018, 12:47 (8 years ago) parentfd1ffd0
2 files changed+7−1
pkgs/development/libraries/SDL/default.nix+6−1 pkgs/top-level/all-packages.nix+1
pkgs/development/libraries/SDL/default.nix+6−1
@@ -4,6 +4,7 @@
44, x11Support ? stdenv.hostPlatform == stdenv.buildPlatform, libXext, libICE, libXrandr
55, pulseaudioSupport ? true, libpulseaudio
66, OpenGL, CoreAudio, CoreServices, AudioUnit, Kernel, Cocoa
7+, cf-private
78}:
89
910# NOTE: When editing this expression see if the same change applies to
@@ -41,7 +42,11 @@ stdenv.mkDerivation rec {
4142
4243 buildInputs = [ ]
4344 ++ optional (!stdenv.hostPlatform.isMinGW) audiofile
44− ++ optionals stdenv.isDarwin [ AudioUnit CoreAudio CoreServices Kernel OpenGL ];
45+ ++ optionals stdenv.isDarwin [
46+ AudioUnit CoreAudio CoreServices Kernel OpenGL
47+ # Needed for NSDefaultRunLoopMode symbols.
48+ cf-private
49+ ];
4550
4651 configureFlags = [
4752 "--disable-oss"
pkgs/top-level/all-packages.nix+1
@@ -12126,6 +12126,7 @@ with pkgs;
1212612126 alsaSupport = stdenv.isLinux;
1212712127 x11Support = !stdenv.isCygwin;
1212812128 pulseaudioSupport = config.pulseaudio or stdenv.isLinux;
12129+ inherit (darwin) cf-private;
1212912130 inherit (darwin.apple_sdk.frameworks) OpenGL CoreAudio CoreServices AudioUnit Kernel Cocoa;
1213012131 };
1213112132