propagate cf-private with AppKit; fixes emacs and others

This commit is contained in:
Jude Taylor 2015-10-11 12:09:06 -07:00
parent 4f1db1f0f8
commit b345f70939
2 changed files with 7 additions and 5 deletions

View File

@ -47,10 +47,8 @@ stdenv.mkDerivation rec {
imagemagick gconf ]
++ stdenv.lib.optional (withX && withGTK2) gtk2
++ stdenv.lib.optional (withX && withGTK3) gtk3
++ stdenv.lib.optional (stdenv.isDarwin && withX) cairo;
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ AppKit Foundation libobjc
];
++ stdenv.lib.optional (stdenv.isDarwin && withX) cairo
++ stdenv.lib.optionals stdenv.isDarwin [ AppKit Foundation libobjc ];
NIX_LDFLAGS = stdenv.lib.optional stdenv.isDarwin
"/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation";

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, xar, gzip, cpio, CF }:
{ stdenv, fetchurl, xar, gzip, cpio, CF, pkgs }:
let
# sadly needs to be exported because security_tool needs it
@ -148,6 +148,10 @@ in rec {
};
overrides = super: {
AppKit = stdenv.lib.overrideDerivation super.AppKit (drv: {
propagatedNativeBuildInputs = drv.propagatedNativeBuildInputs ++ [ pkgs.darwin.cf-private ];
});
QuartzCore = stdenv.lib.overrideDerivation super.QuartzCore (drv: {
installPhase = drv.installPhase + ''
f="$out/Library/Frameworks/QuartzCore.framework/Headers/CoreImage.h"