1 { lib, stdenv, fetchFromGitHub, xcbuildHook, Foundation, AddressBook }:
7 src = fetchFromGitHub {
10 rev = "4092a3c6615d7a22852a3bafc44e4aeeb698aa8f";
11 hash = "sha256-Li/c5uf9rfpuU+hduuSm7EmhVwIIkS72dqzmN+0cE3A=";
15 substituteInPlace contacts.m \
16 --replace "int peopleSort" "long peopleSort"
19 nativeBuildInputs = [ xcbuildHook ];
20 buildInputs = [ Foundation AddressBook ];
24 cp Products/Default/contacts $out/bin
28 description = "Access contacts from the Mac address book from command-line";
29 homepage = "http://www.gnufoo.org/contacts/contacts.html";
30 license = licenses.gpl2Only;
31 maintainers = with maintainers; [ jwiegley ];
32 platforms = platforms.darwin;
33 hydraPlatforms = platforms.darwin;