anchor.diff:      inherit python3Packages;
     };
   
  -  buildInputs = [ openssl proj geos xlibsWrapper sqlite gsl qwt
  +  buildInputs = [ openssl proj geos xlibsWrapper sqlite gsl qwt exiv2
       fcgi libspatialindex libspatialite postgresql txt2tags libzip hdf5 netcdf
       qtbase qtwebkit qtsensors qca-qt5 qtkeychain qscintilla qtserialport qtxmlpatterns] ++
       (stdenv.lib.optional withGrass grass) ++ pythonBuildInputs;
  
positive.code:   # build to use PYQT5_SIP_DIR consistently.
    postPatch = ''
       substituteInPlace cmake/FindPyQt5.py \
         --replace 'pyqtcfg.pyqt_sip_dir' '"${python3Packages.pyqt5}/share/sip/PyQt5"'
     '';
  
    cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF"
  
negative.code:     [ qscintilla-qt5 gdal jinja2 numpy psycopg2
        chardet dateutil pyyaml pytz requests urllib3 pygments pyqt5 sip owslib six ];
  in stdenv.mkDerivation rec {
    version = "3.8.0";
    pname = "qgis";
    name = "${pname}-unwrapped-${version}";
  
    src = fetchFromGitHub {
      owner = "qgis";
      repo = "QGIS";
      rev = "final-${lib.replaceStrings ["."] ["_"] version}";
      sha256 = "11jqj6lavpw9piv0rm8vvbgd99zhcxl6yfjg699wlrjlyf71xac5";
    };
  
    passthru = {
  