anchor.diff:          buildInputs = [ libxml2 ];
           configureFlags = [ "--enable-xml" ]
             # Required to build on darwin.
  -          ++ lib.optional (lib.versionOlder php.version "7.4") [ "--with-libxml-dir=${libxml2.dev}" ]; }
  +          ++ lib.optional (lib.versionOlder php.version "7.4") [ "--with-libxml-dir=${libxml2.dev}" ];
  +        doCheck = false; }
         { name = "xmlreader";
           buildInputs = [ libxml2 ];
           configureFlags = [ "--enable-xmlreader CFLAGS=-I../.." ]
  
positive.code:           "--with-external-gd=${gd.dev}"
            "--enable-gd-jis-conv"
          ];
          enable = lib.versionAtLeast php.version "7.4"; }
        { name = "gd";
          buildInputs = [ zlib gd libXpm ];
  
negative.code:           "LDAP_DIR=${openldap.dev}"
            "LDAP_INCDIR=${openldap.dev}/include"
            "LDAP_LIBDIR=${openldap.out}/lib"
          ] ++ lib.optional stdenv.isLinux "--with-ldap-sasl=${cyrus_sasl.dev}";
          doCheck = false; }
        { name = "mbstring"; buildInputs = [ oniguruma ]; doCheck = false; }
        { name = "mysqli";
          internalDeps = [ "mysqlnd" ];
          configureFlags = [ "--with-mysqli=mysqlnd" "--with-mysql-sock=/run/mysqld/mysqld.sock" ];
          doCheck = false; }
        { name = "mysqlnd";
          buildInputs = [ zlib openssl ];
          # The configure script doesn't correctly add library link
  