about summary refs log tree commit diff
path: root/pkgs/tools/misc/contacts/default.nix
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-02-12 16:58:11 -0600
committerJohn Wiegley <johnw@newartisans.com>2015-02-12 16:58:22 -0600
commitb39d5ea309ef702974b3a126f4d5dab464ee757b (patch)
treecec1a7ba0f2979bf35c0746c19aa62b69c65def5 /pkgs/tools/misc/contacts/default.nix
parent2f2d638d38e8e447d832a30e3027a5da1802fe72 (diff)
downloadnixlib-b39d5ea309ef702974b3a126f4d5dab464ee757b.tar
nixlib-b39d5ea309ef702974b3a126f4d5dab464ee757b.tar.gz
nixlib-b39d5ea309ef702974b3a126f4d5dab464ee757b.tar.bz2
nixlib-b39d5ea309ef702974b3a126f4d5dab464ee757b.tar.lz
nixlib-b39d5ea309ef702974b3a126f4d5dab464ee757b.tar.xz
nixlib-b39d5ea309ef702974b3a126f4d5dab464ee757b.tar.zst
nixlib-b39d5ea309ef702974b3a126f4d5dab464ee757b.zip
contacts: New expression for darwin
Diffstat (limited to 'pkgs/tools/misc/contacts/default.nix')
-rw-r--r--pkgs/tools/misc/contacts/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/misc/contacts/default.nix b/pkgs/tools/misc/contacts/default.nix
new file mode 100644
index 000000000000..2bfe0eb42665
--- /dev/null
+++ b/pkgs/tools/misc/contacts/default.nix
@@ -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;
+  };
+}