anchor.diff:      export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libxml2}/include/libxml2 $additionalFlags"
     '';
   
  -  postInstall = ''
  -    mv $out/sbin $out/bin
  -  '';
  -
     meta = {
       description = "A reverse proxy and lightweight webserver";
       homepage    = http://nginx.org;
  
positive.code: with stdenv.lib;
  
  let
    version = "1.6.3";
    mainSrc = fetchurl {
      url = "http://nginx.org/download/nginx-${version}.tar.gz";
      sha256 = "0mz7nx1ffw4f024yb4w9kpjd33z1f16zmq9iyd160kbf6rdyk60a";
    };
  
    rtmp-ext = fetchFromGitHub {
      owner = "arut";
      repo = "nginx-rtmp-module";
      rev = "v1.1.5";
      sha256 = "1d9ws4prxz22yq3nhh5h18jrs331zivrdh784l6wznc1chg3gphn";
    };
  
    dav-ext = fetchFromGitHub {
  
negative.code:   patches = if syslog then [ "${syslog-ext}/syslog-1.5.6.patch" ] else [];
  
    configureFlags = [
      "--with-select_module"
      "--with-poll_module"
      "--with-aio_module"
      "--with-threads"
      "--with-file-aio"
      "--with-http_ssl_module"
      "--with-http_spdy_module"
      "--with-http_realip_module"
  