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

31 lines
1,018 B
Nix
Raw Normal View History

{ stdenv, fetchurl, xcbuild, Foundation, AddressBook }:
2015-02-12 23:58:11 +01:00
stdenv.mkDerivation rec {
version = "1.1a-3";
name = "contacts-${version}";
src = fetchurl {
url = "https://github.com/dhess/contacts/archive/4092a3c6615d7a22852a3bafc44e4aeeb698aa8f.tar.gz";
sha256 = "0wdqc1ndgrdhqapvvgx5xihc750szv08lp91x4l6n0gh59cpxpg3";
};
buildInputs = [ xcbuild Foundation AddressBook ];
2015-02-12 23:58:11 +01:00
installPhase = ''
mkdir -p $out/bin
2016-11-10 06:07:24 +01:00
cp ./contacts-*/Build/Products/Default/contacts $out/bin
2015-02-12 23:58:11 +01:00
'';
2016-11-10 21:56:58 +01:00
## FIXME: the framework setup hook isn't adding these correctly
NIX_LDFLAGS = " -F${Foundation}/Library/Frameworks/ -F${AddressBook}/Library/Frameworks/";
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;
license = licenses.gpl2;
maintainers = with maintainers; [ jwiegley ];
platforms = stdenv.lib.platforms.darwin;
hydraPlatforms = stdenv.lib.platforms.darwin;
};
}