diff options
author | Felix Buehler <account@buehler.rocks> | 2021-09-19 18:56:31 +0200 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2021-09-19 18:56:31 +0200 |
commit | c1429659c7508afd42726773395d64600158f702 (patch) | |
tree | 261c44ba1ccc33146d4f9eaef2c1749fa21344fc /pkgs/tools/misc/contacts | |
parent | f4431f535c680da3e19d7ab37fe15f27e2e39ff4 (diff) |
contacts: switch to fetchFromGitHub
Diffstat (limited to 'pkgs/tools/misc/contacts')
-rw-r--r-- | pkgs/tools/misc/contacts/default.nix | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/pkgs/tools/misc/contacts/default.nix b/pkgs/tools/misc/contacts/default.nix index 7b652f36a19fd..e0b1613735f81 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; }; } |