@@ -2,10 +2,12 @@
22 stdenv, makeWrapper, lib, fetchurl, fetchpatch,
33
44 automake, autoconf, libtool, intltool, mtdev, libevdev, libinput,
5− python, freetype, apple_sdk, tradcpp, fontconfig,
5+ python, freetype, tradcpp, fontconfig,
66 libGL, spice-protocol, zlib, libGLU, dbus, libunwind, libdrm,
77 mesa_noglu, udev, bootstrap_cmds, bison, flex, clangStdenv, autoreconfHook,
8− mcpp, epoxy, openssl, pkgconfig, llvm_6 }:
8+ mcpp, epoxy, openssl, pkgconfig, llvm_6,
9+ cf-private, ApplicationServices, Carbon, Cocoa, Xplugin
10+}:
911
1012let
1113 inherit (stdenv) lib isDarwin;
@@ -108,9 +110,9 @@ self: super:
108110 });
109111
110112 libAppleWM = super.libAppleWM.overrideAttrs (attrs: {
111− buildInputs = attrs.buildInputs ++ [ apple_sdk.frameworks.ApplicationServices ];
113+ buildInputs = attrs.buildInputs ++ [ ApplicationServices ];
112114 preConfigure = ''
113− substituteInPlace src/Makefile.in --replace -F/System -F${apple_sdk.frameworks.ApplicationServices}
115+ substituteInPlace src/Makefile.in --replace -F/System -F${ApplicationServices}
114116 '';
115117 });
116118
@@ -466,7 +468,11 @@ self: super:
466468 sha256 = "1j1i3n5xy1wawhk95kxqdc54h34kg7xp4nnramba2q8xqfr5k117";
467469 };
468470 nativeBuildInputs = [ pkgconfig ];
469− buildInputs = [ dri2proto dri3proto renderproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libXt ];
471+ buildInputs = [ dri2proto dri3proto renderproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libXt ]
472+ ++ stdenv.lib.optionals stdenv.isDarwin [
473+ # Needed for NSDefaultRunLoopMode symbols.
474+ cf-private
475+ ];
470476 postPatch = stdenv.lib.optionalString stdenv.isLinux "sed '1i#include <malloc.h>' -i include/os.h";
471477 meta.platforms = stdenv.lib.platforms.unix;
472478 } else throw "unsupported xorg abiCompat ${abiCompat} for ${attrs_passed.name}";
@@ -538,9 +544,7 @@ self: super:
538544 nativeBuildInputs = attrs.nativeBuildInputs ++ [ autoreconfHook self.utilmacros self.fontutil ];
539545 buildInputs = commonBuildInputs ++ [
540546 bootstrap_cmds automake autoconf
541− apple_sdk.libs.Xplugin
542− apple_sdk.frameworks.Carbon
543− apple_sdk.frameworks.Cocoa
547+ Xplugin Carbon Cocoa
544548 ];
545549 propagatedBuildInputs = commonPropagatedBuildInputs ++ [
546550 libAppleWM applewmproto
@@ -582,7 +586,7 @@ self: super:
582586 preConfigure = ''
583587 mkdir -p $out/Applications
584588 export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-error"
585− substituteInPlace hw/xquartz/pbproxy/Makefile.in --replace -F/System -F${apple_sdk.frameworks.ApplicationServices}
589+ substituteInPlace hw/xquartz/pbproxy/Makefile.in --replace -F/System -F${ApplicationServices}
586590 '';
587591 postInstall = ''
588592 rm -fr $out/share/X11/xkb/compiled