depot/third_party/nixpkgs/pkgs/tools/networking/fdm/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

32 lines
938 B
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, openssl, tdb, zlib, flex, bison }:
stdenv.mkDerivation rec {
pname = "fdm";
version = "2.2";
src = fetchFromGitHub {
owner = "nicm";
repo = pname;
rev = version;
hash = "sha256-Gqpz+N1ELU5jQpPJAG9s8J9UHWOJNhkT+s7+xuQazd0=";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ openssl tdb zlib flex bison ];
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}
'';
meta = with lib; {
description = "Mail fetching and delivery tool - should do the job of getmail and procmail";
maintainers = with maintainers; [ raskin ];
platforms = with platforms; linux ++ darwin;
homepage = "https://github.com/nicm/fdm";
downloadPage = "https://github.com/nicm/fdm/releases";
license = licenses.isc;
};
}