anchor.diff:          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 ];
  
positive.code: 
        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 = {
  
  
negative.code: 
        hardeningDisable = [ "bindnow" ];
  
        preConfigure = ''
          # Don't record the configure flags since this causes unnecessary
          # runtime dependencies
          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" ]] || addToSearchPath PATH $libxml2/bin
  
          configureFlags+=(--with-config-file-path=$out/etc \
            --includedir=$dev/include \
            EXTENSION_DIR=$out/lib/php/extensions)
        '';
  
        configureFlags = [
          "--with-config-file-scan-dir=/etc/php.d"
        ] ++ lib.optional stdenv.isDarwin "--with-iconv=${libiconv}"
          ++ lib.optional stdenv.isLinux  "--with-fpm-systemd";
  
        postInstall = ''
          cp php.ini-production $out/etc/php.ini
        '';
  
        postFixup = ''
          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/
        '';
  
        src = fetchurl {
  