2022-01-26 11:17:04 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2017-02-25 23:02:06 +00:00
|
|
|
{
|
2022-11-01 10:16:19 +00:00
|
|
|
# OpenSSL pre-3.0.7 vulnerabilities
|
2022-11-01 10:09:48 +00:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
(self: super: {
|
|
|
|
exim =
|
2022-11-01 13:20:37 +00:00
|
|
|
super.exim.overrideAttrs (old: let
|
|
|
|
key = if builtins.hasAttr "preBuild" old then
|
|
|
|
"preBuild"
|
|
|
|
else
|
|
|
|
"configurePhase";
|
|
|
|
in {
|
2022-11-01 10:09:48 +00:00
|
|
|
buildInputs = old.buildInputs ++ [ self.gnutls ];
|
2022-11-01 13:20:37 +00:00
|
|
|
${key} = /* sh */ ''
|
|
|
|
${old.${key}}
|
2022-11-01 10:09:48 +00:00
|
|
|
sed -Ei '
|
|
|
|
s:^USE_OPENSSL=.*:# &:
|
|
|
|
s:^# (USE_GNUTLS)=.*:\1=yes:
|
|
|
|
s:^# (USE_GNUTLS_PC=.*):\1:
|
|
|
|
' Local/Makefile
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
})
|
|
|
|
];
|
2022-11-01 10:16:19 +00:00
|
|
|
# OpenSSL pre-3.0.7 vulnerabilities
|
2022-11-01 10:03:24 +00:00
|
|
|
services.nginx.package = lib.mkDefault (pkgs.nginxStable.override { openssl = pkgs.libressl; });
|
2017-02-25 23:02:06 +00:00
|
|
|
}
|