diff options
author | Martin Sturm <mstrm@openmailbox.org> | 2015-09-29 20:08:53 +0200 |
---|---|---|
committer | Martin Sturm <mstrm@openmailbox.org> | 2016-03-04 02:26:44 +0100 |
commit | 507ad9a4f92df8c324ee23d49a817b12968c77ca (patch) | |
tree | db8102a3b88f3a1ab7c7ec9a0e29117965cb7fb8 /pkgs/tools/security/clamav | |
parent | 4bea06636aa00560f3348e560e0138d5322c4e7e (diff) |
clamav: Use freshclam.conf defined by clamav-updater module if enabled
Diffstat (limited to 'pkgs/tools/security/clamav')
-rw-r--r-- | pkgs/tools/security/clamav/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/security/clamav/default.nix b/pkgs/tools/security/clamav/default.nix index efb727833919d..0a172935bb597 100644 --- a/pkgs/tools/security/clamav/default.nix +++ b/pkgs/tools/security/clamav/default.nix @@ -1,5 +1,6 @@ { stdenv, fetchurl, zlib, bzip2, libiconv, libxml2, openssl, ncurses, curl -, libmilter, pcre }: +, libmilter, pcre, freshclamConf ? null }: + stdenv.mkDerivation rec { name = "clamav-${version}"; version = "0.99"; @@ -24,6 +25,8 @@ stdenv.mkDerivation rec { "--disable-clamav" ]; + fixupPhase = if (freshclamConf != null) then ''echo "${freshclamConf}" > $out/etc/freshclam.conf'' else ""; + meta = with stdenv.lib; { homepage = http://www.clamav.net; description = "Antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats"; |