mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 09:36:14 +01:00
d9b1925c57
Signed-off-by: Magic_RB <magic_rb@redalder.org>
50 lines
1.1 KiB
Nix
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;
|
|
};
|
|
};
|
|
};
|
|
}
|