anchor.diff:    depsBuildBuild = [ buildPackages.stdenv.cc ];
   
     nativeBuildInputs = [ pkg-config ];
  -  buildInputs = [ pcre pcre.dev libxml2 zlib bzip2 which file openssl ]
  +  buildInputs = [ pcre2 pcre2.dev libxml2 zlib bzip2 which file openssl ]
                ++ lib.optional enableDbi libdbi
                ++ lib.optional enableMagnet lua5_1
                ++ lib.optional enableMysql libmysqlclient
  
positive.code:                 ++ lib.optional enableExtendedAttrs "--with-attr";
  
    preConfigure = ''
      export PATH=$PATH:${pcre.dev}/bin
      sed -i "s:/usr/bin/file:${file}/bin/file:g" configure
    '';
  
  
negative.code: , enableWebDAV ? false, sqlite, libuuid
  , enableExtendedAttrs ? false, attr
  , perl
  }:
  
  stdenv.mkDerivation rec {
    pname = "lighttpd";
    version = "1.4.64";
  
    src = fetchurl {
      url = "https://download.lighttpd.net/lighttpd/releases-${lib.versions.majorMinor version}.x/${pname}-${version}.tar.xz";
      sha256 = "sha256-4Uidn6dJb78uBxwzi1k7IwDTjCPx5ZZ+UsnvSC4bDiY=";
    };
  
    postPatch = ''
      patchShebangs tests
  