base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / misc / contacts / default.nix
blob1c789ca1d11db8968c9dc1e930ecbcf3768348b7
1 { lib, stdenv, fetchFromGitHub, xcbuildHook, Foundation, AddressBook }:
3 stdenv.mkDerivation {
4   version = "1.1a-3";
5   pname = "contacts";
7   src = fetchFromGitHub {
8     owner = "dhess";
9     repo = "contacts";
10     rev = "4092a3c6615d7a22852a3bafc44e4aeeb698aa8f";
11     hash = "sha256-Li/c5uf9rfpuU+hduuSm7EmhVwIIkS72dqzmN+0cE3A=";
12   };
14   postPatch = ''
15     substituteInPlace contacts.m \
16       --replace "int peopleSort" "long peopleSort"
17   '';
19   nativeBuildInputs = [ xcbuildHook ];
20   buildInputs = [ Foundation AddressBook ];
22   installPhase = ''
23     mkdir -p $out/bin
24     cp Products/Default/contacts $out/bin
25   '';
27   meta = with lib; {
28     description = "Access contacts from the Mac address book from command-line";
29     homepage = "http://www.gnufoo.org/contacts/contacts.html";
30     license = licenses.gpl2Only;
31     maintainers = with maintainers; [ jwiegley ];
32     platforms = platforms.darwin;
33     hydraPlatforms = platforms.darwin;
34   };