about summary refs log tree commit diff
path: root/pkgs/tools/text/mairix/default.nix
blob: 3528a054b2914321840543904a9bcf42bb72f54e (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
{ lib, stdenv, fetchurl, zlib, bzip2, bison, flex }:

stdenv.mkDerivation rec {
  pname = "mairix";
  version = "0.24";

  src = fetchurl {
    url = "mirror://sourceforge/mairix/mairix-${version}.tar.gz";
    sha256 = "0msaxz5c5hf7k1ci16i67m4ynrbrpsxbqzk84nz6z2vnkh3jww50";
  };

  buildInputs = [ zlib bzip2 bison flex ];

  # https://github.com/rc0/mairix/pull/19
  patches = [ ./mmap.patch ];

  enableParallelBuilding = true;

  meta = {
    homepage = "http://www.rc0.org.uk/mairix";
    license = lib.licenses.gpl2Plus;
    description = "Program for indexing and searching email messages stored in maildir, MH or mbox";
    mainProgram = "mairix";
    maintainers = with lib.maintainers; [viric];
    platforms = with lib.platforms; all;
  };
}