anchor.diff:      rev = "0c6e05d3125a97892a250e9ba8b7674163ba500b";
       sha256 = "e121d97fd3c81c64e6cbf6902bbcbdb01be9ac985c6832d40434379d5e998eaf";
     };
  +
  +  echo-ext = fetchgit {
  +    url = https://github.com/openresty/echo-nginx-module.git;
  +    rev = "refs/tags/v0.53";
  +    sha256 = "90d4e3a49c678019f4f335bc18529aa108fcc9cfe0747ea4e2f6084a70da2868";
  +  };
   in
   
   stdenv.mkDerivation rec {
  
positive.code: 
    buildInputs =
      [ openssl zlib pcre libxml2 libxslt gd geoip
      ] ++ stdenv.lib.optional fullWebDAV expat;
  
    patches = if syslog then [ "${syslog-ext}/syslog-1.5.6.patch" ] else [];
  
  
negative.code:     "--with-ipv6"
      # Install destination problems
      # "--with-http_perl_module"
    ] ++ optional rtmp "--add-module=${rtmp-ext}"
      ++ optional fullWebDAV "--add-module=${dav-ext}"
      ++ optional syslog "--add-module=${syslog-ext}"
      ++ optional moreheaders "--add-module=${moreheaders-ext}"
      ++ optional echo "--add-module=${echo-ext}"
      ++ optional (elem stdenv.system (with platforms; linux ++ freebsd)) "--with-file-aio";
  
  
    additionalFlags = optionalString stdenv.isDarwin "-Wno-error=deprecated-declarations";
  
    preConfigure = ''
      export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libxml2}/include/libxml2 $additionalFlags"
  