diff options
author | Peter Simons <simons@cryp.to> | 2012-08-03 13:21:29 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2012-08-03 13:21:29 +0200 |
commit | a143bb79e2dff9ddf5bbe7a5e853232cfdb79a01 (patch) | |
tree | d0acea03d3ddf4ba412b94563d8cd1f621385064 /pkgs/servers/mail/spamassassin | |
parent | 866ed72060d0cac47d2bc1ab7d5873a3c2f53e02 (diff) |
spamassassin: disable taint mode, without it we cannot configure the PERL5LIB search path
Diffstat (limited to 'pkgs/servers/mail/spamassassin')
-rw-r--r-- | pkgs/servers/mail/spamassassin/default.nix | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/servers/mail/spamassassin/default.nix b/pkgs/servers/mail/spamassassin/default.nix index 8f22d08b75922..0f5cefb84c259 100644 --- a/pkgs/servers/mail/spamassassin/default.nix +++ b/pkgs/servers/mail/spamassassin/default.nix @@ -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"; |