dotfiles/overlays/maildrop/default.nix
magic_rb aff0158ef7
Reformat the whole flake using alejandra
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-03-02 22:17:03 +01:00

48 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;
};
};
};
}