@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, zlib, bzip2, libiconv, libxml2, openssl, ncurses, curl
2−, libmilter, pcre, freshclamConf ? null }:
2+, libmilter, pcre }:
33
44stdenv.mkDerivation rec {
55 name = "clamav-${version}";
@@ -10,7 +10,9 @@ stdenv.mkDerivation rec {
1010 sha256 = "0yh2q318bnmf2152g2h1yvzgqbswn0wvbzb8p4kf7v057shxcyqn";
1111 };
1212
13− buildInputs = [ zlib bzip2 libxml2 openssl ncurses curl libiconv libmilter pcre ];
13+ buildInputs = [
14+ zlib bzip2 libxml2 openssl ncurses curl libiconv libmilter pcre
15+ ];
1416
1517 configureFlags = [
1618 "--with-zlib=${zlib.dev}"
@@ -22,11 +24,8 @@ stdenv.mkDerivation rec {
2224 "--with-libcurl=${curl.dev}"
2325 "--with-pcre=${pcre.dev}"
2426 "--enable-milter"
25− "--disable-clamav"
2627 ];
2728
28− fixupPhase = if (freshclamConf != null) then ''echo "${freshclamConf}" > $out/etc/freshclam.conf'' else "";
29−
3029 meta = with stdenv.lib; {
3130 homepage = http://www.clamav.net;
3231 description = "Antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats";