lol
1{ stdenv, fetchurl }:
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 preBuild = ''
13 substituteInPlace Makefile --replace "xcodebuild" "/usr/bin/xcodebuild"
14 '';
15
16 installPhase = ''
17 mkdir -p $out/bin
18 cp ./build/Deployment/contacts $out/bin
19 '';
20
21 meta = with stdenv.lib; {
22 description = "Access contacts from the Mac address book from command-line";
23 homepage = http://www.gnufoo.org/contacts/contacts.html;
24 license = licenses.gpl2;
25 maintainers = with maintainers; [ jwiegley ];
26 platforms = stdenv.lib.platforms.darwin;
27 hydraPlatforms = stdenv.lib.platforms.darwin;
28 };
29}