at 18.09-beta 31 lines 1.0 kB view raw
1{ stdenv, fetchurl, xcbuildHook, Foundation, AddressBook }: 2 3stdenv.mkDerivation rec { 4 version = "1.1a-3"; 5 name = "contacts-${version}"; 6 7 src = fetchurl { 8 url = "https://github.com/dhess/contacts/archive/4092a3c6615d7a22852a3bafc44e4aeeb698aa8f.tar.gz"; 9 sha256 = "0wdqc1ndgrdhqapvvgx5xihc750szv08lp91x4l6n0gh59cpxpg3"; 10 }; 11 12 nativeBuildInputs = [ xcbuildHook ]; 13 buildInputs = [ Foundation AddressBook ]; 14 15 installPhase = '' 16 mkdir -p $out/bin 17 cp Products/Default/contacts $out/bin 18 ''; 19 20 ## FIXME: the framework setup hook isn't adding these correctly 21 NIX_LDFLAGS = " -F${Foundation}/Library/Frameworks/ -F${AddressBook}/Library/Frameworks/"; 22 23 meta = with stdenv.lib; { 24 description = "Access contacts from the Mac address book from command-line"; 25 homepage = http://www.gnufoo.org/contacts/contacts.html; 26 license = licenses.gpl2; 27 maintainers = with maintainers; [ jwiegley ]; 28 platforms = stdenv.lib.platforms.darwin; 29 hydraPlatforms = stdenv.lib.platforms.darwin; 30 }; 31}