anchor.diff:    # - Unset CC and CXX as they confuse libtool.
     # - teach gdal that libdf is the legacy name for libhdf
     preConfigure = ''
  -      substituteInPlace configure \
  -      --replace "-lmfhdf -ldf" "-lmfhdf -lhdf"
  -    '';
  +    substituteInPlace configure \
  +    --replace "-lmfhdf -ldf" "-lmfhdf -lhdf"
  +  '';
   
     preBuild = ''
       substituteInPlace swig/python/GNUmakefile \
  
positive.code: 
    meta = {
      description = "Translator library for raster geospatial data formats";
      homepage = https://www.gdal.org/;
      license = stdenv.lib.licenses.mit;
      maintainers = [ stdenv.lib.maintainers.marcweber ];
      platforms = with stdenv.lib.platforms; linux ++ darwin;
  
negative.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;
  
  