@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, xcbuildHook, Foundation, AddressBook }:
1+{ stdenv, fetchurl, xcbuildHook, cf-private, Foundation, AddressBook }:
22
33stdenv.mkDerivation rec {
44 version = "1.1a-3";
@@ -10,16 +10,18 @@ stdenv.mkDerivation rec {
1010 };
1111
1212 nativeBuildInputs = [ xcbuildHook ];
13− buildInputs = [ Foundation AddressBook ];
13+
14+ buildInputs = [
15+ Foundation AddressBook
16+ # Needed for OBJC_CLASS_$_NSArray symbols.
17+ cf-private
18+ ];
1419
1520 installPhase = ''
1621 mkdir -p $out/bin
1722 cp Products/Default/contacts $out/bin
1823 '';
1924
20− ## FIXME: the framework setup hook isn't adding these correctly
21− NIX_LDFLAGS = " -F${Foundation}/Library/Frameworks/ -F${AddressBook}/Library/Frameworks/";
22−
2325 meta = with stdenv.lib; {
2426 description = "Access contacts from the Mac address book from command-line";
2527 homepage = http://www.gnufoo.org/contacts/contacts.html;