From 78623f492c3587aacc8100805a5b4d3487d5f140 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 7 Nov 2018 19:50:54 +0100 Subject: [PATCH] fltk: add cf-private on darwin Undefined symbols for architecture x86_64: "_NSDefaultRunLoopMode", referenced from: fl_open_display() in Fl_cocoa.o fl_ready() in Fl_cocoa.o fl_wait(double) in Fl_cocoa.o "_OBJC_CLASS_$_NSArray", referenced from: objc-class-ref in Fl_cocoa.o "_OBJC_CLASS_$_NSData", referenced from: objc-class-ref in Fl_Sys_Menu_Bar.o "_OBJC_CLASS_$_NSDate", referenced from: objc-class-ref in Fl_cocoa.o "_OBJC_CLASS_$_NSDictionary", referenced from: objc-class-ref in Fl_cocoa.o "_OBJC_CLASS_$_NSURL", referenced from: objc-class-ref in Fl_Native_File_Chooser_MAC.o ld: symbol(s) not found for architecture x86_64 --- pkgs/development/libraries/fltk/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/fltk/default.nix b/pkgs/development/libraries/fltk/default.nix index 405d80031e37..b1c798476ead 100644 --- a/pkgs/development/libraries/fltk/default.nix +++ b/pkgs/development/libraries/fltk/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, pkgconfig, xlibsWrapper, inputproto, libXi , freeglut, libGLU_combined, libjpeg, zlib, libXft, libpng -, darwin, libtiff, freetype +, libtiff, freetype, cf-private, Cocoa, AGL, GLUT }: let @@ -35,7 +35,7 @@ in stdenv.mkDerivation { propagatedBuildInputs = [ inputproto ] ++ (if stdenv.isDarwin - then (with darwin.apple_sdk.frameworks; [Cocoa AGL GLUT freetype libtiff]) + then [ Cocoa AGL GLUT freetype libtiff cf-private /* Needed for NSDefaultRunLoopMode */ ] else [ xlibsWrapper libXi freeglut ]); enableParallelBuilding = true; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 72a0dc8956be..84ca9cd8161e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9574,7 +9574,10 @@ with pkgs; flite = callPackage ../development/libraries/flite { }; - fltk13 = callPackage ../development/libraries/fltk { }; + fltk13 = callPackage ../development/libraries/fltk { + inherit (darwin) cf-private; + inherit (darwin.apple_sdk.frameworks) Cocoa AGL GLUT; + }; fltk = self.fltk13; flyway = callPackage ../development/tools/flyway { };