forked from mirrors/nixpkgs
0534ceac81
Not every package that needs xcbuild will want to use its build phase. I have moved the xcbuild setup hook to the new attribute xcbuildHook. This means that dontUseXcbuild is no longer needed. If you just need to call xcbuild on its own you can just refer to xcbuild.
32 lines
1 KiB
Nix
32 lines
1 KiB
Nix
{ stdenv, fetchurl, xcbuildHook, Foundation, AddressBook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.1a-3";
|
|
name = "contacts-${version}";
|
|
|
|
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
|
|
'';
|
|
|
|
## FIXME: the framework setup hook isn't adding these correctly
|
|
NIX_LDFLAGS = " -F${Foundation}/Library/Frameworks/ -F${AddressBook}/Library/Frameworks/";
|
|
|
|
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;
|
|
};
|
|
}
|