From f00a4af18fc7a3bae3e59b370554f82c882e3a42 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Tue, 6 Nov 2018 18:48:14 +0100 Subject: quartz-wm: add cf-private Undefined symbols for architecture x86_64: "_CFNotificationCenterAddObserver", referenced from: _main in main.o "_CFNotificationCenterGetDistributedCenter", referenced from: _main in main.o "_OBJC_CLASS_$_NSTimer", referenced from: objc-class-ref in main.o objc-class-ref in x-screen.o "_OBJC_EHTYPE_$_NSException", referenced from: GCC_except_table25 in main.o ld: symbol(s) not found for architecture x86_64 --- pkgs/servers/x11/quartz-wm/default.nix | 8 +++++--- pkgs/top-level/all-packages.nix | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'pkgs') diff --git a/pkgs/servers/x11/quartz-wm/default.nix b/pkgs/servers/x11/quartz-wm/default.nix index d724a81debbb..ccb3937ac85f 100644 --- a/pkgs/servers/x11/quartz-wm/default.nix +++ b/pkgs/servers/x11/quartz-wm/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchurl, xorg, pixman, pkgconfig, AppKit, Xplugin, darwin }: +{ stdenv, fetchurl, xorg, pixman, pkgconfig, AppKit, Foundation, Xplugin, cf-private }: let version = "1.3.1"; in stdenv.mkDerivation { @@ -19,9 +19,11 @@ in stdenv.mkDerivation { xorg.libXext pixman pkgconfig - AppKit Xplugin darwin.apple_sdk.frameworks.Foundation + AppKit Xplugin Foundation + # Needed for CFNotificationCenterAddObserver symbols. + cf-private ]; - meta = with lib; { + meta = with stdenv.lib; { license = licenses.apsl20; platforms = platforms.darwin; maintainers = with maintainers; [ matthewbauer ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2cc9beb895fd..060c4df627a6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13845,7 +13845,8 @@ with pkgs; xquartz = callPackage ../servers/x11/xquartz { }; quartz-wm = callPackage ../servers/x11/quartz-wm { stdenv = clangStdenv; - inherit (darwin.apple_sdk.frameworks) AppKit; + inherit (darwin) cf-private; + inherit (darwin.apple_sdk.frameworks) AppKit Foundation; inherit (darwin.apple_sdk.libs) Xplugin; }; -- cgit 1.4.1