anchor.diff:        };
   
         gd = {
  -        configureFlags = ["--with-gd=${gd} --with-freetype-dir=${freetype}"];
  +        configureFlags = [
  +          "--with-gd"
  +          "--with-freetype-dir=${freetype}"
  +          "--with-png-dir=${libpng}"
  +          "--with-jpeg-dir=${libjpeg}"
  +        ];
           buildInputs = [gd libpng libjpeg freetype];
         };
   
  
positive.code: { stdenv, fetchurl, composableDerivation, autoconf, automake, flex, bison
  , apacheHttpd, mysql, libxml2, readline, zlib, curl, gd, postgresql, gettext
  , openssl, pkgconfig, sqlite, config, libiconv, libjpeg, libpng, freetype
  , libxslt, libmcrypt, bzip2, icu }:
  
  let
    libmcryptOverride = libmcrypt.override { disablePosixThreads = true; };
  
negative.code: 
    enableParallelBuilding = true;
  
    buildInputs
      = [ flex bison pkgconfig ]
      ++ stdenv.lib.optionals stdenv.isDarwin [ libssh2 makeWrapper ];
  
    # need to include the C++ standard library when compiling on darwin
    NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lstdc++";
  
    # need to specify where the dylib for icu is stored
    DYLD_LIBRARY_PATH = stdenv.lib.optionalString stdenv.isDarwin "${icu}/lib";
  
    flags = {
  
  