anchor.diff:          mkdir -p $dev/bin $dev/share/man/man1
           mv $out/bin/phpize $out/bin/php-config $dev/bin/
           mv $out/share/man/man1/phpize.1.gz \
  -          $out/share/man/man1/php-config.1.gz \
  -          $dev/share/man/man1/
  +           $out/share/man/man1/php-config.1.gz \
  +           $dev/share/man/man1/
         '';
   
         src = fetchurl {
  
positive.code: 
        inherit version;
  
        name = "php-${version}";
  
        enableParallelBuilding = true;
  
        nativeBuildInputs = [ autoconf bison libtool pkgconfig re2c ];
        buildInputs = [ ]
          ++ optional (versionOlder version "7.3") pcre
          ++ optional (versionAtLeast version "7.3") pcre2
  
negative.code: # pcre functionality is tested in nixos/tests/php-pcre.nix
  { config, lib, stdenv, fetchurl
  , autoconf, automake, bison, file, flex, libtool, pkgconfig, re2c
  , libxml2, readline, zlib, curl, postgresql, gettext
  , openssl, pcre, pcre2, sqlite
  , libxslt, libmcrypt, bzip2, icu, openldap, cyrus_sasl, libmhash, unixODBC
  , uwimap, pam, gmp, apacheHttpd, libiconv, systemd, libsodium, html-tidy, libargon2
  , gd, freetype, libXpm, libjpeg, libpng, libwebp
  