anchor.diff:      mkdir $out/etc
       cp etc/*.sample $out/etc
     '';
  +
  +  # Only required for the unit tests
  +  hardeningDisable = [ "format" ];
  +  doCheck = true;
   
     meta = with stdenv.lib; {
       homepage = "https://www.clamav.net";
  
positive.code: { stdenv, fetchurl, pkgconfig
  , zlib, bzip2, libiconv, libxml2, openssl, ncurses, curl, libmilter, pcre2
  , libmspack, systemd, Foundation
  }:
  
  stdenv.mkDerivation rec {
  
negative.code:     "--with-xml=${libxml2.dev}"
      "--with-openssl=${openssl.dev}"
      "--with-libcurl=${curl.dev}"
      "--with-libjson=${json_c.dev}"
      "--with-system-libmspack"
      "--enable-milter"
      "--disable-unrar" # disable unrar because it's non-free and requires some extra patching to work properly
      "--enable-check"
    ] ++ stdenv.lib.optional stdenv.isLinux
      "--with-systemdsystemunitdir=$(out)/lib/systemd";
  
  