forked from mirrors/nixpkgs
contacts: use xcbuild instead of xcodebuild
This commit is contained in:
parent
a35b330f30
commit
ec409c8e96
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl, xcbuild, Foundation, AddressBook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.1a-3";
|
version = "1.1a-3";
|
||||||
|
@ -9,15 +9,15 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0wdqc1ndgrdhqapvvgx5xihc750szv08lp91x4l6n0gh59cpxpg3";
|
sha256 = "0wdqc1ndgrdhqapvvgx5xihc750szv08lp91x4l6n0gh59cpxpg3";
|
||||||
};
|
};
|
||||||
|
|
||||||
preBuild = ''
|
buildInputs = [ xcbuild Foundation AddressBook ];
|
||||||
substituteInPlace Makefile --replace "xcodebuild" "/usr/bin/xcodebuild"
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp ./build/Deployment/contacts $out/bin
|
cp ./contacts-*/Build/Products/Default-*/contacts $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
NIX_LDFLAGS = " -F${Foundation}/Library/Frameworks/ -F${AddressBook}/Library/Frameworks/";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Access contacts from the Mac address book from command-line";
|
description = "Access contacts from the Mac address book from command-line";
|
||||||
homepage = http://www.gnufoo.org/contacts/contacts.html;
|
homepage = http://www.gnufoo.org/contacts/contacts.html;
|
||||||
|
|
|
@ -760,7 +760,9 @@ in
|
||||||
|
|
||||||
cpulimit = callPackage ../tools/misc/cpulimit { };
|
cpulimit = callPackage ../tools/misc/cpulimit { };
|
||||||
|
|
||||||
contacts = callPackage ../tools/misc/contacts { };
|
contacts = callPackage ../tools/misc/contacts {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Foundation AddressBook;
|
||||||
|
};
|
||||||
|
|
||||||
coturn = callPackage ../servers/coturn { };
|
coturn = callPackage ../servers/coturn { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue