Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / abook / default.nix
blobe822f869619b98306b64316acc65340672a5af73
1 { lib, stdenv, fetchurl, fetchpatch, pkg-config, ncurses, readline, autoreconfHook }:
3 stdenv.mkDerivation rec {
4   pname = "abook";
5   version = "0.6.1";
7   src = fetchurl {
8     url = "http://abook.sourceforge.net/devel/abook-${version}.tar.gz";
9     sha256 = "1yf0ifyjhq2r003pnpn92mn0924bn9yxjifxxj2ldcsgd7w0vagh";
10   };
12   patches = [
13     (fetchpatch {
14       url = "https://projects.archlinux.org/svntogit/packages.git/plain/trunk/gcc5.patch?h=packages/abook";
15       name = "gcc5.patch";
16       sha256 = "13n3qd6yy45i5n8ppjn9hj6y63ymjrq96280683xk7f7rjavw5nn";
17     })
18   ];
20   nativeBuildInputs = [ pkg-config autoreconfHook ];
21   buildInputs = [ ncurses readline ];
23   meta = {
24     homepage = "http://abook.sourceforge.net/";
25     description = "Text-based addressbook program designed to use with mutt mail client";
26     license = lib.licenses.gpl2;
27     maintainers = [ lib.maintainers.edwtjo ];
28     platforms = with lib.platforms; unix;
29   };