anchor.diff:        scripts/d.what.vect/d.what.vect.py \
         scripts/g.extension/g.extension.py \
         scripts/g.extension.all/g.extension.all.py \
  +      scripts/r.drain/r.drain.py \
         scripts/r.pack/r.pack.py \
         scripts/r.tileset/r.tileset.py \
         scripts/r.unpack/r.unpack.py \
  +      scripts/v.clip/v.clip.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 \
  
positive.code:     done
    '';
  
    postInstall = ''
      wrapProgram $out/bin/grass72 \
      --set PYTHONPATH $PYTHONPATH \
      --set GRASS_PYTHON ${python2Packages.python}/bin/${python2Packages.python.executable} \
      --suffix LD_LIBRARY_PATH ':' '${gdal}/lib'
      ln -s $out/grass-*/lib $out/lib
      ln -s $out/grass-*/include $out/include
    '';
  
    enableParallelBuilding = true;
  
negative.code: { stdenv, fetchFromGitHub, flex, bison, pkgconfig, zlib, libtiff, libpng, fftw
  , cairo, readline, ffmpeg, makeWrapper, wxGTK30, netcdf, blas
  , proj, gdal, geos, sqlite, postgresql, mysql, python2Packages, libLAS, proj-datumgrid
  }:
  
  stdenv.mkDerivation rec {
    name = "grass";
    version = "7.6.1";
  
    src = with stdenv.lib; fetchFromGitHub {
      owner = "OSGeo";
      repo = "grass";
      rev = "${name}_${replaceStrings ["."] ["_"] version}";
      sha256 = "1amjk9rz7vw5ha7nyl5j2bfwj5if9w62nlwx5qbp1x7spldimlll";
    };
  
    nativeBuildInputs = [ pkgconfig ];
    buildInputs = [ flex bison zlib proj gdal libtiff libpng fftw sqlite cairo proj
    readline ffmpeg makeWrapper wxGTK30 netcdf geos postgresql mysql.connector-c blas
    libLAS proj-datumgrid ]
      ++ (with python2Packages; [ python dateutil wxPython30 numpy ]);
  
    # On Darwin the installer tries to symlink the help files into a system
  