git.iko.soy/typeable/nixpkgs
on master help sign in
clamav: don't bundle freshclam config with package

Building clamav is expensive due to the bundled llvm. Closes #20304.

commit02e9c88d778b06909d4ef5a2e7e417aaeecb89a7 authorFranz Pletz <fpletz@fnordicwalking.de> dateTue 15 Nov 2016, 02:02 (10 years ago) parent999ac30
2 files changed+5−6
nixos/modules/services/security/clamav.nix+1−1 pkgs/tools/security/clamav/default.nix+4−5
nixos/modules/services/security/clamav.nix+1−1
@@ -16,7 +16,7 @@ let
1616
1717 ${cfg.daemon.extraConfig}
1818 '';
19− pkg = pkgs.clamav.override { freshclamConf = cfg.updater.config; };
19+ pkg = pkgs.clamav;
2020in
2121{
2222 options = {
pkgs/tools/security/clamav/default.nix+4−5
@@ -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";