anchor.diff:      "-DDBDIR=/var/lib/rspamd"
       "-DLOGDIR=/var/log/rspamd"
       "-DLOCAL_CONFDIR=/etc/rspamd"
  +    "-DENABLE_JEMALLOC=ON"
     ] ++ lib.optional withFann "-DENABLE_FANN=ON"
       ++ lib.optional withGd "-DENABLE_GD=ON";
   
  
positive.code:   };
  
    nativeBuildInputs = [ cmake pkgconfig perl ];
    buildInputs = [ glib libevent libmagic luajit openssl pcre sqlite ragel icu ]
      ++ lib.optional withFann libfann
      ++ lib.optional withGd gd;
  
  
negative.code: { stdenv, lib, fetchFromGitHub, cmake, perl
  , file, glib, libevent, luajit, openssl, pcre, pkgconfig, sqlite, ragel, icu
  , libfann, gd, jemalloc
  , withFann ? true
  , withGd ? false
  }:
  