anchor.diff:  , brotliSupport ? true, brotli
   , luaSupport ? false, lua5
   }:
  -
  -let inherit (lib) optional;
  -in
  -
  -assert sslSupport -> aprutil.sslSupport && openssl != null;
  -assert ldapSupport -> aprutil.ldapSupport && openldap != null;
  -assert http2Support -> nghttp2 != null;
   
   stdenv.mkDerivation rec {
     pname = "apache-httpd";
  
positive.code: 
    meta = with lib; {
      description = "Apache HTTPD, the world's most popular web server";
      homepage    = "http://httpd.apache.org/";
      license     = licenses.asl20;
      platforms   = lib.platforms.linux ++ lib.platforms.darwin;
      maintainers = with maintainers; [ lovek323 peti ];
    };
  }
  
negative.code:   outputs = [ "out" "dev" "man" "doc" ];
    setOutputFlags = false; # it would move $out/modules, etc.
  
    buildInputs = [ perl ] ++
      lib.optional brotliSupport brotli ++
      lib.optional sslSupport openssl ++
      lib.optional ldapSupport openldap ++    # there is no --with-ldap flag
      lib.optional libxml2Support libxml2 ++
      lib.optional http2Support nghttp2 ++
      lib.optional stdenv.isDarwin libiconv;
  
    postPatch = ''
      sed -i config.layout -e "s|installbuilddir:.*|installbuilddir: $dev/share/build|"
      sed -i support/apachectl.in -e 's|@LYNX_PATH@|${lynx}/bin/lynx|'
    '';
  