feat: mailserver
This commit is contained in:
parent
0ebf0d7a29
commit
b8a31b6264
28 changed files with 2446 additions and 1350 deletions
34
pkgs/overlays/dovecot.nix
Normal file
34
pkgs/overlays/dovecot.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
final: prev: {
|
||||
dovecot = prev.dovecot.overrideAttrs (oldAttrs: rec {
|
||||
version = "2.4.0";
|
||||
|
||||
src = prev.fetchurl {
|
||||
url = "https://dovecot.org/releases/${prev.lib.versions.majorMinor version}/${oldAttrs.pname}-${version}.tar.gz";
|
||||
hash = "sha256-6Q5J+MMbCaUIJJpP7oYF+qZf4yCBm/ytryUkEmJT1a4=";
|
||||
};
|
||||
|
||||
# Dovecot 2.4 Not need this patch anymore
|
||||
patches = builtins.filter (
|
||||
patch: (!(prev.lib.hasInfix "Support-openssl-3.0.patch" (toString patch)))
|
||||
) oldAttrs.patches;
|
||||
|
||||
# Dovecot 2.4 Not need this patch anymore
|
||||
postPatch =
|
||||
prev.lib.replaceStrings
|
||||
[
|
||||
# bash
|
||||
''
|
||||
# DES-encrypted passwords are not supported by NixPkgs anymore
|
||||
sed '/test_password_scheme("CRYPT"/d' -i src/auth/test-libpassword.c
|
||||
''
|
||||
]
|
||||
[
|
||||
# bash
|
||||
''
|
||||
# DES-encrypted passwords are not supported by NixPkgs anymore
|
||||
sed '/test_password_scheme("CRYPT"/d' -i src/lib-auth/test-password-scheme.c
|
||||
''
|
||||
]
|
||||
oldAttrs.postPatch;
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue