Files
nixpkgs/pkgs/by-name/fd/fdm/package.nix
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

49 lines
987 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
openssl,
tdb,
zlib,
flex,
bison,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fdm";
version = "2.2";
src = fetchFromGitHub {
owner = "nicm";
repo = "fdm";
rev = finalAttrs.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/fdm
install -m644 MANUAL $out/share/doc/fdm
cp -R examples $out/share/doc/fdm
'';
meta = {
description = "Mail fetching and delivery tool - should do the job of getmail and procmail";
maintainers = with lib.maintainers; [ raskin ];
platforms = with lib.platforms; linux ++ darwin;
homepage = "https://github.com/nicm/fdm";
downloadPage = "https://github.com/nicm/fdm/releases";
license = lib.licenses.isc;
};
})