anchor.diff:        -e "s,^PGSQL_BIN_DIR=.*,PGSQL_BIN_DIR=/run/current-system/sw/bin," \
         -e "s,^SQLITE_BIN_DIR=.*,SQLITE_BIN_DIR=/run/current-system/sw/bin," \
         -e "s,^SQLITE3_BIN_DIR=.*,SQLITE3_BIN_DIR=/run/current-system/sw/bin," \
  +      -e 's,^DSPAM_CRON_LOCKFILE=.*,DSPAM_CRON_LOCKFILE=/run/dspam/dspam_maintenance.pid,' \
         $out/bin/dspam_maintenance
     '';
   
  
positive.code:              ++ lib.optional withSQLite "sqlite3_drv"
               ++ lib.optional withDB "libdb4_drv"
              );
    maintenancePath = lib.makeSearchPath "bin" [ gawk gnused gnugrep coreutils ];
  
  in stdenv.mkDerivation rec {
    name = "dspam-3.10.2";
  
negative.code: { stdenv, lib, fetchurl, makeWrapper
  , gawk, gnused, gnugrep, coreutils, which
  , perl, NetSMTP
  , withMySQL ? false, zlib, libmysql
  , withPgSQL ? false, postgresql
  