mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-11 09:22:02 +01:00
aff0158ef7
Signed-off-by: magic_rb <magic_rb@redalder.org>
47 lines
1.1 KiB
Nix
47 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;
|
|
};
|
|
};
|
|
};
|
|
}
|