anchor.diff:        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/datacatalog/g.gui.datacatalog.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.rast.algebra/t.rast.algebra.py \
  +      temporal/t.rast3d.algebra/t.rast3d.algebra.py \
  +      temporal/t.vect.algebra/t.vect.algebra.py \
         temporal/t.select/t.select.py
       for d in gui lib scripts temporal tools; do
         patchShebangs $d
  
positive.code:   '';
  
    postInstall = ''
      wrapProgram $out/bin/grass70 \
      --set PYTHONPATH $PYTHONPATH \
      --set GRASS_PYTHON ${python2Packages.python}/bin/${python2Packages.python.executable} \
      --suffix LD_LIBRARY_PATH ':' '${gdal}/lib'
  
negative.code: }:
  
  stdenv.mkDerivation {
    name = "grass-7.2.2";
    src = fetchurl {
      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.connector-c blas ]
      ++ (with python2Packages; [ python dateutil wxPython30 numpy ]);
  
    configureFlags = [
  