2021-01-15 09:19:50 +00:00
|
|
|
{fetchurl, lib, stdenv, flex, db}:
|
2008-03-02 18:35:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-12-12 21:50:47 +00:00
|
|
|
name = "bogofilter-1.2.4";
|
2008-03-02 18:35:04 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/bogofilter/${name}.tar.bz2";
|
2013-12-12 21:50:47 +00:00
|
|
|
sha256 = "1d56n2m9inm8gnzm88aa27xl2a7sp7aff3484vmflpqkinjqf0p1";
|
2008-03-02 18:35:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# FIXME: We would need `pax' as a "propagated build input" (for use
|
|
|
|
# by the `bf_tar' script) but we don't have it currently.
|
|
|
|
|
2014-01-31 20:05:37 +00:00
|
|
|
buildInputs = [ flex db ];
|
2008-03-02 18:35:04 +00:00
|
|
|
|
2018-04-25 03:20:18 +00:00
|
|
|
doCheck = false; # needs "y" tool
|
|
|
|
|
2008-03-02 18:35:04 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://bogofilter.sourceforge.net/";
|
2009-03-03 13:27:40 +00:00
|
|
|
longDescription = ''
|
|
|
|
Bogofilter is a mail filter that classifies mail as spam or ham
|
|
|
|
(non-spam) by a statistical analysis of the message's header and
|
|
|
|
content (body). The program is able to learn from the user's
|
|
|
|
classifications and corrections. It is based on a Bayesian
|
|
|
|
filter.
|
|
|
|
'';
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
2008-03-02 18:35:04 +00:00
|
|
|
};
|
|
|
|
}
|