contacts: use xcbuild instead of xcodebuild

This commit is contained in:
Matthew Bauer 2016-11-09 12:01:49 -06:00
parent a35b330f30
commit ec409c8e96
No known key found for this signature in database
GPG Key ID: E04D0AD9469141C3
2 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, xcbuild, Foundation, AddressBook }:
stdenv.mkDerivation rec {
version = "1.1a-3";
@ -9,15 +9,15 @@ stdenv.mkDerivation rec {
sha256 = "0wdqc1ndgrdhqapvvgx5xihc750szv08lp91x4l6n0gh59cpxpg3";
};
preBuild = ''
substituteInPlace Makefile --replace "xcodebuild" "/usr/bin/xcodebuild"
'';
buildInputs = [ xcbuild Foundation AddressBook ];
installPhase = ''
mkdir -p $out/bin
cp ./build/Deployment/contacts $out/bin
cp ./contacts-*/Build/Products/Default-*/contacts $out/bin
'';
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

@ -760,7 +760,9 @@ in
cpulimit = callPackage ../tools/misc/cpulimit { };
contacts = callPackage ../tools/misc/contacts { };
contacts = callPackage ../tools/misc/contacts {
inherit (darwin.apple_sdk.frameworks) Foundation AddressBook;
};
coturn = callPackage ../servers/coturn { };