spamassassin: disable taint mode, without it we cannot configure the PERL5LIB search path

This commit is contained in:
Peter Simons 2012-08-03 13:21:29 +02:00
parent 866ed72060
commit a143bb79e2

View file

@ -1,5 +1,5 @@
{ stdenv, fetchurl, buildPerlPackage, perl, HTMLParser, NetDNS, NetAddrIP, DBFile
, HTTPDate, MailDKIM
, HTTPDate, MailDKIM, makeWrapper
}:
# TODO:
@ -20,13 +20,21 @@ buildPerlPackage rec {
sha256 = "01d2jcpy423zfnhg123wlhzysih1hmb93nxfspiaajzh9r5rn8y7";
};
propagatedBuildInputs = [ HTMLParser NetDNS NetAddrIP DBFile
HTTPDate MailDKIM ];
buildInputs = [ makeWrapper HTMLParser NetDNS NetAddrIP DBFile HTTPDate
MailDKIM ];
makeFlags = "PERL_BIN=${perl}/bin/perl";
# Enabling 'taint' mode is desirable, but that flag disables support
# for the PERL5LIB environment variable. Needs further investigation.
makeFlags = "PERL_BIN=${perl}/bin/perl PERL_TAINT=no";
doCheck = false;
postInstall = ''
for n in "$out/bin/"*; do
wrapProgram "$n" --prefix PERL5LIB : "$PERL5LIB"
done
'';
meta = {
homepage = "http://spamassassin.apache.org/";
description = "Open-Source Spam Filter";