nixpkgs/pkgs/tools/misc/contacts/default.nix

29 lines
862 B
Nix
Raw Normal View History

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