mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
spamassassin: disable taint mode, without it we cannot configure the PERL5LIB search path
This commit is contained in:
parent
866ed72060
commit
a143bb79e2
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user