contacts: add cf-private
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_NSArray", referenced from: objc-class-ref in contacts.o objc-class-ref in FormatHelper.o "_OBJC_CLASS_$_NSMutableArray", referenced from: objc-class-ref in FormatHelper.o ld: symbol(s) not found for architecture x86_64
This commit is contained in:
parent
d4b7c2b88f
commit
86bf715c49
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, xcbuildHook, Foundation, AddressBook }:
|
{ stdenv, fetchurl, xcbuildHook, cf-private, Foundation, AddressBook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.1a-3";
|
version = "1.1a-3";
|
||||||
@ -10,16 +10,18 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ xcbuildHook ];
|
nativeBuildInputs = [ xcbuildHook ];
|
||||||
buildInputs = [ Foundation AddressBook ];
|
|
||||||
|
buildInputs = [
|
||||||
|
Foundation AddressBook
|
||||||
|
# Needed for OBJC_CLASS_$_NSArray symbols.
|
||||||
|
cf-private
|
||||||
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp Products/Default/contacts $out/bin
|
cp Products/Default/contacts $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
## FIXME: the framework setup hook isn't adding these correctly
|
|
||||||
NIX_LDFLAGS = " -F${Foundation}/Library/Frameworks/ -F${AddressBook}/Library/Frameworks/";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Access contacts from the Mac address book from command-line";
|
description = "Access contacts from the Mac address book from command-line";
|
||||||
homepage = http://www.gnufoo.org/contacts/contacts.html;
|
homepage = http://www.gnufoo.org/contacts/contacts.html;
|
||||||
|
@ -1172,6 +1172,7 @@ with pkgs;
|
|||||||
codec2 = callPackage ../development/libraries/codec2 { };
|
codec2 = callPackage ../development/libraries/codec2 { };
|
||||||
|
|
||||||
contacts = callPackage ../tools/misc/contacts {
|
contacts = callPackage ../tools/misc/contacts {
|
||||||
|
inherit (darwin) cf-private;
|
||||||
inherit (darwin.apple_sdk.frameworks) Foundation AddressBook;
|
inherit (darwin.apple_sdk.frameworks) Foundation AddressBook;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user