2018-11-05 19:35:06 +00:00
|
|
|
{ stdenv, fetchurl, xcbuildHook, cf-private, Foundation, AddressBook }:
|
2015-02-12 22:58:11 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.1a-3";
|
|
|
|
name = "contacts-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/dhess/contacts/archive/4092a3c6615d7a22852a3bafc44e4aeeb698aa8f.tar.gz";
|
|
|
|
sha256 = "0wdqc1ndgrdhqapvvgx5xihc750szv08lp91x4l6n0gh59cpxpg3";
|
|
|
|
};
|
|
|
|
|
2018-07-06 23:53:50 +01:00
|
|
|
nativeBuildInputs = [ xcbuildHook ];
|
2018-11-05 19:35:06 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
Foundation AddressBook
|
|
|
|
# Needed for OBJC_CLASS_$_NSArray symbols.
|
|
|
|
cf-private
|
|
|
|
];
|
2015-02-12 22:58:11 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2018-04-08 06:27:14 +01:00
|
|
|
cp Products/Default/contacts $out/bin
|
2015-02-12 22:58:11 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Access contacts from the Mac address book from command-line";
|
|
|
|
homepage = http://www.gnufoo.org/contacts/contacts.html;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
platforms = stdenv.lib.platforms.darwin;
|
|
|
|
hydraPlatforms = stdenv.lib.platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|