alacritty: add cf-private on darwin

note: Undefined symbols for architecture x86_64:
            "_CFURLResourceIsReachable", referenced from:
                alacritty::config::Monitor:🆕:_$u7b$$u7b$closure$u7d$$u7d$::h8c82fbfba8a3a673 in alacritty-6a8d3226ed5c4bef.alacritty.9tpyu7jw-cgu.1.rcgu.o
            "_NSDefaultRunLoopMode", referenced from:
                alacritty::main::hd6e46019b2208595 in alacritty-6a8d3226ed5c4bef.alacritty.9tpyu7jw-cgu.1.rcgu.o
          ld: symbol(s) not found for architecture x86_64
          clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
This commit is contained in:
Daiderd Jordan 2018-11-07 19:10:34 +01:00
parent 1d0517ddb3
commit 16a54d6b2b
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 7 additions and 10 deletions

View File

@ -18,6 +18,7 @@
libGL,
xclip,
# Darwin Frameworks
cf-private,
AppKit,
CoreFoundation,
CoreGraphics,
@ -40,15 +41,6 @@ let
libGL
libXi
];
darwinFrameworks = [
AppKit
CoreFoundation
CoreGraphics
CoreServices
CoreText
Foundation
OpenGL
];
in buildRustPackage rec {
name = "alacritty-unstable-${version}";
version = "0.2.1";
@ -71,7 +63,11 @@ in buildRustPackage rec {
];
buildInputs = rpathLibs
++ lib.optionals stdenv.isDarwin darwinFrameworks;
++ lib.optionals stdenv.isDarwin [
AppKit CoreFoundation CoreGraphics CoreServices CoreText Foundation OpenGL
# Needed for CFURLResourceIsReachable symbols.
cf-private
];
outputs = [ "out" "terminfo" ];

View File

@ -519,6 +519,7 @@ with pkgs;
alacritty = callPackage ../applications/misc/alacritty {
inherit (xorg) libXcursor libXxf86vm libXi;
inherit (darwin) cf-private;
inherit (darwin.apple_sdk.frameworks) AppKit CoreFoundation CoreGraphics CoreServices CoreText Foundation OpenGL;
};