anchor.diff:  { stdenv, lib, fetchurl, perl, pkg-config, systemd, openssl
  -, bzip2, zlib, lz4, inotify-tools, pam, libcap
  +, bzip2, zlib, lz4, inotify-tools, pam, libcap, coreutils
   , clucene_core_2, icu, openldap, libsodium, libstemmer, cyrus_sasl
   , nixosTests
   # Auth modules
  
positive.code: 
    enableParallelBuilding = true;
  
    preConfigure = ''
      patchShebangs src/config/settings-get.pl
    '' + lib.optionalString (stdenv.isLinux) "export systemdsystemunitdir=$out/etc/systemd/system";
  
    # We need this for sysconfdir, see remark below.
    installFlags = [ "DESTDIR=$(out)" ];
  
negative.code:     ++ lib.optional withPgSQL "--with-pgsql"
      ++ lib.optional withSQLite "--with-sqlite";
  
    doCheck = !stdenv.isDarwin;
  
    meta = with lib; {
      homepage = "https://dovecot.org/";
      description = "Open source IMAP and POP3 email server written with security primarily in mind";
  