anchor.diff:      sha256 = "0g84hws15s8gh8iq4h6q747dyfazx47vh3da3whz8d80x83ibgld";
   
       # https://bugs.php.net/bug.php?id=76826
  -    extraPatches = optional stdenv.isDarwin ./php73-darwin-isfinite.patch;
  +    extraPatches = lib.optional stdenv.isDarwin ./php73-darwin-isfinite.patch;
     };
   
     php74 = generic' {
  
positive.code:     passthru.buildEnv = { exts ? (_: []), extraConfig ? "" }: let
        extraInit = writeText "custom-php.ini" ''
          ${extraConfig}
          ${concatMapStringsSep "\n" (ext: let
            extName = lib.removePrefix "php-" (builtins.parseDrvName ext.name).name;
            type = "${lib.optionalString (ext.zendExtension or false) "zend_"}extension";
          in ''
  
negative.code:         "--with-xpm-dir=${libXpm.dev}"
          "--enable-gd-jis-conv"
        ]
        ++ lib.optional gmpSupport "--with-gmp=${gmp.dev}"
        ++ lib.optional soapSupport "--enable-soap"
        ++ lib.optional socketsSupport "--enable-sockets"
        ++ lib.optional opensslSupport "--with-openssl"
        ++ lib.optional mbstringSupport "--enable-mbstring"
        ++ lib.optional gettextSupport "--with-gettext=${gettext}"
        ++ lib.optional intlSupport "--enable-intl"
        ++ lib.optional exifSupport "--enable-exif"
        ++ lib.optional xslSupport "--with-xsl=${libxslt.dev}"
        ++ lib.optional bz2Support "--with-bz2=${bzip2.dev}"
        ++ lib.optional (zipSupport && (lib.versionOlder version "7.4")) "--enable-zip"
        ++ lib.optional (zipSupport && (lib.versionAtLeast version "7.4")) "--with-zip"
        ++ lib.optional ftpSupport "--enable-ftp"
        ++ lib.optional fpmSupport "--enable-fpm"
        ++ lib.optional ztsSupport "--enable-maintainer-zts"
        ++ lib.optional calendarSupport "--enable-calendar"
        ++ lib.optional sodiumSupport "--with-sodium=${libsodium.dev}"
        ++ lib.optional tidySupport "--with-tidy=${html-tidy}"
        ++ lib.optional argon2Support "--with-password-argon2=${libargon2}"
        ++ lib.optional (libzipSupport && (lib.versionOlder version "7.4")) "--with-libzip=${libzip.dev}"
        ++ lib.optional phpdbgSupport "--enable-phpdbg"
        ++ lib.optional (!phpdbgSupport) "--disable-phpdbg"
        ++ lib.optional (!cgiSupport) "--disable-cgi"
        ++ lib.optional (!cliSupport) "--disable-cli"
        ++ lib.optional (!pharSupport) "--disable-phar"
        ++ lib.optional xmlrpcSupport "--with-xmlrpc"
        ++ lib.optional cgotoSupport "--enable-re2c-cgoto"
        ++ lib.optional valgrindSupport "--with-valgrind=${valgrind.dev}"
        ++ lib.optional (!ipv6Support) "--disable-ipv6"
        ++ lib.optional (pearSupport && libxml2Support) "--with-pear=$(out)/lib/php/pear";
  
      hardeningDisable = [ "bindnow" ];
  
  