anchor.diff:            "--with-zlib-dir=${zlib.dev}"
             "--enable-gd-jis-conv"
           ];
  +        doCheck = false;
           enable = lib.versionOlder php.version "7.4"; }
         { name = "gettext";
           buildInputs = [ gettext ];
  
positive.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}"; }
        { name = "mbstring"; buildInputs = [ oniguruma ]; }
        { name = "mysqli";
          internalDeps = [ "mysqlnd" ];
          configureFlags = [ "--with-mysqli=mysqlnd" "--with-mysql-sock=/run/mysqld/mysqld.sock" ]; }
        { name = "mysqlnd";
          buildInputs = [ zlib openssl ];
          # The configure script doesn't correctly add library link
  
negative.code:         buildInputs = [ net-snmp openssl ];
          configureFlags = [ "--with-snmp" ];
          # net-snmp doesn't build on darwin.
          enable = (!stdenv.isDarwin);
          doCheck = false; }
        { name = "soap";
          buildInputs = [ libxml2 ];
          configureFlags = [ "--enable-soap" ]
            # Required to build on darwin.
            ++ lib.optional (lib.versionOlder php.version "7.4") [ "--with-libxml-dir=${libxml2.dev}" ];
          doCheck = false; }
        { name = "sockets"; doCheck = false; }
        { name = "sodium"; buildInputs = [ libsodium ]; }
        { name = "sqlite3"; buildInputs = [ sqlite ]; }
        { name = "sysvmsg"; }
        { name = "sysvsem"; }
        { name = "sysvshm"; }
        { name = "tidy"; configureFlags = [ "--with-tidy=${html-tidy}" ]; doCheck = false; }
        { name = "tokenizer"; }
        { name = "wddx";
          buildInputs = [ libxml2 ];
  