2021-09-19 17:56:31 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, xcbuildHook, Foundation, AddressBook }:
|
2015-02-12 22:58:11 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2015-02-12 22:58:11 +00:00
|
|
|
version = "1.1a-3";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "contacts";
|
2015-02-12 22:58:11 +00:00
|
|
|
|
2021-09-19 17:56:31 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dhess";
|
|
|
|
repo = "contacts";
|
|
|
|
rev = "4092a3c6615d7a22852a3bafc44e4aeeb698aa8f";
|
|
|
|
hash = "sha256-Li/c5uf9rfpuU+hduuSm7EmhVwIIkS72dqzmN+0cE3A=";
|
2015-02-12 22:58:11 +00:00
|
|
|
};
|
|
|
|
|
2018-07-06 23:53:50 +01:00
|
|
|
nativeBuildInputs = [ xcbuildHook ];
|
2019-06-19 18:41:13 +01:00
|
|
|
buildInputs = [ Foundation AddressBook ];
|
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
|
|
|
'';
|
|
|
|
|
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";
|
2021-09-19 17:56:31 +01:00
|
|
|
homepage = "http://www.gnufoo.org/contacts/contacts.html";
|
|
|
|
license = licenses.gpl2;
|
2015-02-12 22:58:11 +00:00
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
2021-10-12 18:58:41 +01:00
|
|
|
platforms = platforms.darwin;
|
|
|
|
hydraPlatforms = platforms.darwin;
|
2015-02-12 22:58:11 +00:00
|
|
|
};
|
|
|
|
}
|