summary refs log tree commit diff
path: root/pkgs/tools/misc/contacts
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2021-09-19 18:56:31 +0200
committerFelix Buehler <account@buehler.rocks>2021-09-19 18:56:31 +0200
commitc1429659c7508afd42726773395d64600158f702 (patch)
tree261c44ba1ccc33146d4f9eaef2c1749fa21344fc /pkgs/tools/misc/contacts
parentf4431f535c680da3e19d7ab37fe15f27e2e39ff4 (diff)
downloadnixpkgs-c1429659c7508afd42726773395d64600158f702.tar
nixpkgs-c1429659c7508afd42726773395d64600158f702.tar.gz
nixpkgs-c1429659c7508afd42726773395d64600158f702.tar.bz2
nixpkgs-c1429659c7508afd42726773395d64600158f702.tar.lz
nixpkgs-c1429659c7508afd42726773395d64600158f702.tar.xz
nixpkgs-c1429659c7508afd42726773395d64600158f702.tar.zst
nixpkgs-c1429659c7508afd42726773395d64600158f702.zip
contacts: switch to fetchFromGitHub
Diffstat (limited to 'pkgs/tools/misc/contacts')
-rw-r--r--pkgs/tools/misc/contacts/default.nix16
1 files changed, 9 insertions, 7 deletions
diff --git a/pkgs/tools/misc/contacts/default.nix b/pkgs/tools/misc/contacts/default.nix
index 7b652f36a19..e0b1613735f 100644
--- a/pkgs/tools/misc/contacts/default.nix
+++ b/pkgs/tools/misc/contacts/default.nix
@@ -1,12 +1,14 @@
-{ lib, stdenv, fetchurl, xcbuildHook, Foundation, AddressBook }:
+{ lib, stdenv, fetchFromGitHub, xcbuildHook, Foundation, AddressBook }:
 
 stdenv.mkDerivation {
   version = "1.1a-3";
   pname = "contacts";
 
-  src = fetchurl {
-    url = "https://github.com/dhess/contacts/archive/4092a3c6615d7a22852a3bafc44e4aeeb698aa8f.tar.gz";
-    sha256 = "0wdqc1ndgrdhqapvvgx5xihc750szv08lp91x4l6n0gh59cpxpg3";
+  src = fetchFromGitHub {
+    owner = "dhess";
+    repo = "contacts";
+    rev = "4092a3c6615d7a22852a3bafc44e4aeeb698aa8f";
+    hash = "sha256-Li/c5uf9rfpuU+hduuSm7EmhVwIIkS72dqzmN+0cE3A=";
   };
 
   nativeBuildInputs = [ xcbuildHook ];
@@ -19,10 +21,10 @@ stdenv.mkDerivation {
 
   meta = with lib; {
     description = "Access contacts from the Mac address book from command-line";
-    homepage    = "http://www.gnufoo.org/contacts/contacts.html";
-    license     = licenses.gpl2;
+    homepage = "http://www.gnufoo.org/contacts/contacts.html";
+    license = licenses.gpl2;
     maintainers = with maintainers; [ jwiegley ];
-    platforms   = lib.platforms.darwin;
+    platforms = lib.platforms.darwin;
     hydraPlatforms = lib.platforms.darwin;
   };
 }