1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 openssl,
7 tdb,
8 zlib,
9 flex,
10 bison,
11}:
12
13stdenv.mkDerivation rec {
14 pname = "fdm";
15 version = "2.2";
16
17 src = fetchFromGitHub {
18 owner = "nicm";
19 repo = "fdm";
20 rev = version;
21 hash = "sha256-Gqpz+N1ELU5jQpPJAG9s8J9UHWOJNhkT+s7+xuQazd0=";
22 };
23
24 nativeBuildInputs = [ autoreconfHook ];
25 buildInputs = [
26 openssl
27 tdb
28 zlib
29 flex
30 bison
31 ];
32
33 postInstall = ''
34 install fdm-sanitize $out/bin
35 mkdir -p $out/share/doc/fdm
36 install -m644 MANUAL $out/share/doc/fdm
37 cp -R examples $out/share/doc/fdm
38 '';
39
40 meta = with lib; {
41 description = "Mail fetching and delivery tool - should do the job of getmail and procmail";
42 maintainers = with maintainers; [ raskin ];
43 platforms = with platforms; linux ++ darwin;
44 homepage = "https://github.com/nicm/fdm";
45 downloadPage = "https://github.com/nicm/fdm/releases";
46 license = licenses.isc;
47 };
48}