anchor.diff:      "--with-png=${libpng.dev}" # optional
       "--with-poppler=${poppler.dev}" # optional
       "--with-libz=${zlib.dev}" # optional
  -    "--with-pg=${postgresql}/bin/pg_config"
  +    "--with-pg=yes" # since gdal 3.0 doesn't use ${postgresql}/bin/pg_config
       "--with-mysql=${libmysqlclient}/bin/mysql_config"
       "--with-geotiff=${libgeotiff}"
       "--with-sqlite3=${sqlite.dev}"
  
positive.code: { stdenv, fetchFromGitHub, fetchpatch, unzip, libjpeg, libtiff, zlib, postgresql
  , libmysqlclient, libgeotiff, pythonPackages, proj, geos, openssl, libpng
  , sqlite, libspatialite, poppler, hdf4, qhull, giflib, expat, libiconv, libxml2
  , autoreconfHook, netcdfSupport ? true, netcdf, hdf5, curl }:
  
  with stdenv.lib;
  
  
negative.code: 
    sourceRoot = "source/gdal";
  
    nativeBuildInputs = [ autoreconfHook pkg-config ];
  
    buildInputs = [
      unzip
  