2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, xcbuildHook, Foundation, AddressBook }:
|
2015-02-12 22:58:11 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2015-02-12 22:58:11 +00:00
|
|
|
version = "1.1a-3";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "contacts";
|
2015-02-12 22:58:11 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/dhess/contacts/archive/4092a3c6615d7a22852a3bafc44e4aeeb698aa8f.tar.gz";
|
|
|
|
sha256 = "0wdqc1ndgrdhqapvvgx5xihc750szv08lp91x4l6n0gh59cpxpg3";
|
|
|
|
};
|
|
|
|
|
2018-07-06 22:53:50 +00:00
|
|
|
nativeBuildInputs = [ xcbuildHook ];
|
2019-06-19 17:41:13 +00:00
|
|
|
buildInputs = [ Foundation AddressBook ];
|
2015-02-12 22:58:11 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2018-04-08 05:27:14 +00:00
|
|
|
cp Products/Default/contacts $out/bin
|
2015-02-12 22:58:11 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-02-12 22:58:11 +00:00
|
|
|
description = "Access contacts from the Mac address book from command-line";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.gnufoo.org/contacts/contacts.html";
|
2015-02-12 22:58:11 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.darwin;
|
|
|
|
hydraPlatforms = lib.platforms.darwin;
|
2015-02-12 22:58:11 +00:00
|
|
|
};
|
|
|
|
}
|