summary refs log tree commit diff
path: root/pkgs/applications/misc/abook/default.nix
blob: e822f869619b98306b64316acc65340672a5af73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, ncurses, readline, autoreconfHook }:

stdenv.mkDerivation rec {
  pname = "abook";
  version = "0.6.1";

  src = fetchurl {
    url = "http://abook.sourceforge.net/devel/abook-${version}.tar.gz";
    sha256 = "1yf0ifyjhq2r003pnpn92mn0924bn9yxjifxxj2ldcsgd7w0vagh";
  };

  patches = [
    (fetchpatch {
      url = "https://projects.archlinux.org/svntogit/packages.git/plain/trunk/gcc5.patch?h=packages/abook";
      name = "gcc5.patch";
      sha256 = "13n3qd6yy45i5n8ppjn9hj6y63ymjrq96280683xk7f7rjavw5nn";
    })
  ];

  nativeBuildInputs = [ pkg-config autoreconfHook ];
  buildInputs = [ ncurses readline ];

  meta = {
    homepage = "http://abook.sourceforge.net/";
    description = "Text-based addressbook program designed to use with mutt mail client";
    license = lib.licenses.gpl2;
    maintainers = [ lib.maintainers.edwtjo ];
    platforms = with lib.platforms; unix;
  };
}