2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, openssl, tdb, zlib, flex, bison }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fdm";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "2.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nicm";
|
2021-01-05 17:05:55 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-Gqpz+N1ELU5jQpPJAG9s8J9UHWOJNhkT+s7+xuQazd0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ openssl tdb zlib flex bison ];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
postInstall = ''
|
|
|
|
install fdm-sanitize $out/bin
|
|
|
|
mkdir -p $out/share/doc/${pname}
|
|
|
|
install -m644 MANUAL $out/share/doc/${pname}
|
|
|
|
cp -R examples $out/share/doc/${pname}
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Mail fetching and delivery tool - should do the job of getmail and procmail";
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2023-07-15 17:15:38 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/nicm/fdm";
|
|
|
|
downloadPage = "https://github.com/nicm/fdm/releases";
|
|
|
|
license = licenses.isc;
|
|
|
|
};
|
|
|
|
}
|