dotfiles/overlays/maildrop/default.nix
Magic_RB d9b1925c57 Add maildrop overlay
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2023-06-16 16:08:09 +02:00

50 lines
1.1 KiB
Nix

{ lib, ... }:
let
inherit (lib)
singleton;
pname = "maildrop";
version = "3.1.5";
in
{
flake.overlays.maildrop =
final: prev:
{
maildrop = prev.stdenv.mkDerivation {
inherit pname version;
src = prev.fetchurl {
url = "mirror://sourceforge/courier/${pname}/${version}/${pname}-${version}.tar.bz2";
sha256 = "sha256-Izg/s5uSaQRWRpOXSO5zfnXJ8jmU+MBnI/MEyXp42lo=";
};
nativeBuildInputs = with prev; singleton pkg-config;
buildInputs = with prev; [
perl
pcre2.dev
libidn2.dev
courier-unicode
];
patches = [
./dont-reset-path.patch
./maildrop.configure.hack.patch
];
doCheck = false;
configureFlags = [
"--enable-maildrop-uid="
"--enable-maildrop-gid="
];
meta = with lib; {
homepage = "http://www.courier-mta.org/maildrop/";
description = "Mail filter/mail delivery agent that is used by the Courier Mail Server";
license = licenses.gpl3;
platforms = platforms.linux;
};
};
};
}