2015-06-07 12:34:43 +00:00
|
|
|
{ stdenv, fetchurl, zlib, bzip2, libiconv, libxml2, openssl, ncurses, curl
|
2016-11-15 01:02:25 +00:00
|
|
|
, libmilter, pcre }:
|
2015-09-29 18:08:53 +00:00
|
|
|
|
2012-07-23 14:21:25 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "clamav-${version}";
|
2016-07-28 21:36:38 +00:00
|
|
|
version = "0.99.2";
|
2012-07-23 14:21:25 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-07-28 21:36:38 +00:00
|
|
|
url = "https://www.clamav.net/downloads/production/${name}.tar.gz";
|
|
|
|
sha256 = "0yh2q318bnmf2152g2h1yvzgqbswn0wvbzb8p4kf7v057shxcyqn";
|
2012-07-23 14:21:25 +00:00
|
|
|
};
|
|
|
|
|
2016-11-15 01:02:25 +00:00
|
|
|
buildInputs = [
|
|
|
|
zlib bzip2 libxml2 openssl ncurses curl libiconv libmilter pcre
|
|
|
|
];
|
2012-07-23 14:21:25 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
2016-04-16 17:50:01 +00:00
|
|
|
"--with-zlib=${zlib.dev}"
|
2016-04-16 16:46:12 +00:00
|
|
|
"--with-libbz2-prefix=${bzip2.dev}"
|
2014-11-26 23:16:50 +00:00
|
|
|
"--with-iconv-dir=${libiconv}"
|
2016-08-29 23:57:21 +00:00
|
|
|
"--with-xml=${libxml2.dev}"
|
2016-04-16 17:44:32 +00:00
|
|
|
"--with-openssl=${openssl.dev}"
|
2016-04-16 17:41:10 +00:00
|
|
|
"--with-libncurses-prefix=${ncurses.dev}"
|
2016-04-16 16:47:59 +00:00
|
|
|
"--with-libcurl=${curl.dev}"
|
2016-04-16 17:45:26 +00:00
|
|
|
"--with-pcre=${pcre.dev}"
|
2015-06-07 12:34:43 +00:00
|
|
|
"--enable-milter"
|
2014-11-26 23:16:50 +00:00
|
|
|
];
|
2012-07-23 14:21:25 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.clamav.net;
|
2013-10-05 14:22:46 +00:00
|
|
|
description = "Antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats";
|
2012-07-23 14:21:25 +00:00
|
|
|
license = licenses.gpl2;
|
2015-05-03 00:28:13 +00:00
|
|
|
maintainers = with maintainers; [ phreedom robberer qknight ];
|
2012-07-23 14:21:25 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|