3
0
Fork 0
forked from mirrors/nixpkgs

noti: add cf-private on darwin

Undefined symbols for architecture x86_64:
      "_OBJC_CLASS_$_NSDate", referenced from:
          objc-class-ref in _x002.o
      "_OBJC_CLASS_$_NSRunLoop", referenced from:
          objc-class-ref in _x002.o
    ld: symbol(s) not found for architecture x86_64
This commit is contained in:
Daiderd Jordan 2018-11-07 20:23:49 +01:00
parent 0b45d5b8f9
commit 33104363af
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 3 additions and 2 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" ];

View file

@ -1549,6 +1549,7 @@ with pkgs;
noteshrink = callPackage ../tools/misc/noteshrink { };
noti = callPackage ../tools/misc/noti {
inherit (darwin) cf-private;
inherit (darwin.apple_sdk.frameworks) Cocoa;
};