nixpkgs/pkgs/tools/text/mairix/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

27 lines
753 B
Nix

{ 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;
};
}