Merge pull request #49880 from LnL7/darwin-cfprivate-fixes

darwin cf-private fixes
This commit is contained in:
Daiderd Jordan
2018-11-10 15:03:21 +01:00
committed by GitHub
13 changed files with 106 additions and 82 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, buildGoPackage, fetchFromGitHub, Cocoa }:
{ stdenv, buildGoPackage, fetchFromGitHub, cf-private, Cocoa }:
buildGoPackage rec {
name = "noti-${version}";
@@ -11,7 +11,7 @@ buildGoPackage rec {
sha256 = "1chsqfqk0pnhx5k2nr4c16cpb8m6zv69l1jvv4v4903zgfzcm823";
};
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Cocoa ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Cocoa cf-private /* For OBJC_CLASS_$_NSDate */ ];
# TODO: Remove this when we update apple_sdk
NIX_CFLAGS_COMPILE = stdenv.lib.optionals stdenv.isDarwin [ "-fno-objc-arc" ];