anchor.diff:  
         buildInputs = [ flex bison pkgconfig ]
           ++ lib.optional stdenv.isLinux systemd;
  -
  -      configureFlags = [
  -        "EXTENSION_DIR=$(out)/lib/php/extensions"
  -      ] ++ lib.optional stdenv.isDarwin "--with-iconv=${libiconv}"
  -        ++ lib.optional stdenv.isLinux  "--with-fpm-systemd";
   
         flags = {
   
  
positive.code: 
        hardeningDisable = [ "bindnow" ];
  
        configurePhase = ''
          # Don't record the configure flags since this causes unnecessary
          # runtime dependencies - except for php-embed, as uwsgi needs them.
          ${lib.optionalString (!(config.php.embed or false)) ''
          for i in main/build-defs.h.in scripts/php-config.in; do
            substituteInPlace $i \
              --replace '@CONFIGURE_COMMAND@' '(omitted)' \
              --replace '@CONFIGURE_OPTIONS@' "" \
              --replace '@PHP_LDFLAGS@' ""
          done
          ''}
  
          [[ -z "$libxml2" ]] || export PATH=$PATH:$libxml2/bin
          ./configure --with-config-file-scan-dir=/etc/php.d --with-config-file-path=$out/etc --prefix=$out $configureFlags
        '';
  
        postInstall = ''
          cp php.ini-production $out/etc/php.ini
        '';
  
        src = fetchurl {
  
negative.code:         license = licenses.php301;
          maintainers = with maintainers; [ globin ];
          platforms = platforms.all;
          outputsToInstall = [ "out" "dev" ];
        };
  
        patches = if !php7 then [ ./fix-paths.patch ] else [ ./fix-paths-php7.patch ];
  