diff options
Diffstat (limited to 'pkgs/servers/mail/spamassassin/default.nix')
-rw-r--r-- | pkgs/servers/mail/spamassassin/default.nix | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/servers/mail/spamassassin/default.nix b/pkgs/servers/mail/spamassassin/default.nix index 26e4afcd3b546..ef87288df29be 100644 --- a/pkgs/servers/mail/spamassassin/default.nix +++ b/pkgs/servers/mail/spamassassin/default.nix @@ -9,11 +9,18 @@ perlPackages.buildPerlPackage rec { sha256 = "044ng2aazqy8g0m17q0a4939ck1ca4x230q2q7q7jndvwkrpaj5w"; }; - nativeBuildInputs = [ makeWrapper ]; + # ExtUtil::MakeMaker is bundled with Perl, but the bundled version + # causes build errors for aarch64-darwin, so we override it with the + # latest version. We can drop the dependency to go back to the + # bundled version when the version that comes with Perl is ≥7.57_02. + # + # Check the version bundled with Perl like this: + # perl -e 'use ExtUtils::MakeMaker qw($VERSION); print "$VERSION\n"' + nativeBuildInputs = [ makeWrapper perlPackages.ExtUtilsMakeMaker ]; buildInputs = (with perlPackages; [ HTMLParser NetCIDRLite NetDNS NetAddrIP DBFile HTTPDate MailDKIM LWP - IOSocketSSL DBI EncodeDetect IPCountry NetIdent Razor2ClientAgent MailSPF - NetDNSResolverProgrammable Socket6 + LWPProtocolHttps IOSocketSSL DBI EncodeDetect IPCountry NetIdent + Razor2ClientAgent MailSPF NetDNSResolverProgrammable Socket6 ]); # Enabling 'taint' mode is desirable, but that flag disables support |