nixpkgs/pkgs/tools/misc/contacts/default.nix
2021-01-15 17:12:36 +07:00

29 lines
846 B
Nix

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