1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

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:
Daiderd Jordan 2018-11-05 20:35:06 +01:00
parent d4b7c2b88f
commit 86bf715c49
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 8 additions and 5 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, xcbuildHook, Foundation, AddressBook }:
{ stdenv, fetchurl, xcbuildHook, cf-private, Foundation, AddressBook }:
stdenv.mkDerivation rec {
version = "1.1a-3";
@ -10,16 +10,18 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ xcbuildHook ];
buildInputs = [ Foundation AddressBook ];
buildInputs = [
Foundation AddressBook
# Needed for OBJC_CLASS_$_NSArray symbols.
cf-private
];
installPhase = ''
mkdir -p $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; {
description = "Access contacts from the Mac address book from command-line";
homepage = http://www.gnufoo.org/contacts/contacts.html;

View file

@ -1172,6 +1172,7 @@ with pkgs;
codec2 = callPackage ../development/libraries/codec2 { };
contacts = callPackage ../tools/misc/contacts {
inherit (darwin) cf-private;
inherit (darwin.apple_sdk.frameworks) Foundation AddressBook;
};