mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
contacts: New expression for darwin
This commit is contained in:
parent
2f2d638d38
commit
b39d5ea309
29
pkgs/tools/misc/contacts/default.nix
Normal file
29
pkgs/tools/misc/contacts/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.1a-3";
|
||||
name = "contacts-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/dhess/contacts/archive/4092a3c6615d7a22852a3bafc44e4aeeb698aa8f.tar.gz";
|
||||
sha256 = "0wdqc1ndgrdhqapvvgx5xihc750szv08lp91x4l6n0gh59cpxpg3";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
substituteInPlace Makefile --replace "xcodebuild" "/usr/bin/xcodebuild"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp ./build/Deployment/contacts $out/bin
|
||||
'';
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
|
@ -730,6 +730,8 @@ let
|
|||
|
||||
cv = callPackage ../tools/misc/cv { };
|
||||
|
||||
contacts = callPackage ../tools/misc/contacts { };
|
||||
|
||||
datamash = callPackage ../tools/misc/datamash { };
|
||||
|
||||
ddate = callPackage ../tools/misc/ddate { };
|
||||
|
|
Loading…
Reference in a new issue