anchor.diff:                  ++ lib.optional enableExtendedAttrs "--with-attr";
   
     preConfigure = ''
  -    export PATH=$PATH:${pcre.dev}/bin
  +    export PATH=$PATH:${pcre2.dev}/bin
       sed -i "s:/usr/bin/file:${file}/bin/file:g" configure
     '';
   
  
positive.code: { lib, stdenv, buildPackages, fetchurl, pkg-config, pcre, libxml2, zlib, bzip2, which, file
  , openssl
  , enableDbi ? false, libdbi
  , enableMagnet ? false, lua5_1
  
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
  