anchor.diff:  }:
   
   stdenv.mkDerivation {
  -  name = "grass-7.0.2";
  +  name = "grass-7.2.2";
     src = fetchurl {
  -    url = http://grass.osgeo.org/grass70/source/grass-7.0.2.tar.gz;
  -    sha256 = "02qrdgn46gxr60amxwax4b8fkkmhmjxi6qh4yfvpbii6ai6diarf";
  +    url = http://grass.osgeo.org/grass72/source/grass-7.2.2.tar.gz;
  +    sha256 = "0yzljbrxlqp4wbw08n1dvmm4vmwkg8glf1ff4xyh589r5ryb7gxv";
     };
   
     nativeBuildInputs = [ pkgconfig ];
     buildInputs = [ flex bison zlib proj gdal libtiff libpng fftw sqlite cairo
  -  readline ffmpeg makeWrapper wxGTK30 netcdf geos postgresql mysql.client blas ]
  +  readline ffmpeg makeWrapper wxGTK30 netcdf geos postgresql mysql.connector-c blas ]
       ++ (with python2Packages; [ python dateutil wxPython30 numpy ]);
   
     configureFlags = [
  
positive.code:       scripts/r.pack/r.pack.py \
        scripts/r.tileset/r.tileset.py \
        scripts/r.unpack/r.unpack.py \
        scripts/v.krige/v.krige.py \
        scripts/v.rast.stats/v.rast.stats.py \
        scripts/v.to.lines/v.to.lines.py \
        scripts/v.what.strds/v.what.strds.py \
        scripts/v.unpack/v.unpack.py \
        scripts/wxpyimgview/*.py \
        gui/wxpython/animation/g.gui.animation.py \
        gui/wxpython/rlisetup/g.gui.rlisetup.py \
        gui/wxpython/vdigit/g.gui.vdigit.py \
        temporal/t.rast.accumulate/t.rast.accumulate.py \
        temporal/t.rast.accdetect/t.rast.accdetect.py \
        temporal/t.select/t.select.py
      for d in gui lib scripts temporal tools; do
        patchShebangs $d
  
negative.code:   '';
  
    postInstall = ''
      wrapProgram $out/bin/grass72 \
      --set PYTHONPATH $PYTHONPATH \
      --set GRASS_PYTHON ${python2Packages.python}/bin/${python2Packages.python.executable} \
      --suffix LD_LIBRARY_PATH ':' '${gdal}/lib'
  