@@ -1,14 +1,15 @@
11{ stdenv, fetchurl, fetchpatch, pkgconfig
2−, zlib, bzip2, libiconv, libxml2, openssl, ncurses, curl, libmilter, pcre
2+, zlib, bzip2, libiconv, libxml2, openssl, ncurses, curl, libmilter, pcre2
3+, libmspack, systemd
34}:
45
56stdenv.mkDerivation rec {
67 name = "clamav-${version}";
7− version = "0.99.4";
8+ version = "0.100.1";
89
910 src = fetchurl {
1011 url = "https://www.clamav.net/downloads/production/${name}.tar.gz";
11− sha256 = "0q94iwi729id9pyc72w6zlllbaz37qvpi6gc51g2x3fy7ckw6anp";
12+ sha256 = "17x5b2gh84b167h6ip9hw05w809p009yx13i4gkps92ja5jjdq44";
1213 };
1314
1415 # don't install sample config files into the absolute sysconfdir folder
@@ -18,16 +19,20 @@ stdenv.mkDerivation rec {
1819
1920 nativeBuildInputs = [ pkgconfig ];
2021 buildInputs = [
21− zlib bzip2 libxml2 openssl ncurses curl libiconv libmilter pcre
22+ zlib bzip2 libxml2 openssl ncurses curl libiconv libmilter pcre2 libmspack
23+ systemd
2224 ];
2325
2426 configureFlags = [
27+ "--libdir=$(out)/lib"
2528 "--sysconfdir=/etc/clamav"
29+ "--with-systemdsystemunitdir=$(out)/lib/systemd"
2630 "--disable-llvm" # enabling breaks the build at the moment
2731 "--with-zlib=${zlib.dev}"
2832 "--with-xml=${libxml2.dev}"
2933 "--with-openssl=${openssl.dev}"
3034 "--with-libcurl=${curl.dev}"
35+ "--with-system-libmspack"
3136 "--enable-milter"
3237 ];
3338