@@ -1,7 +1,7 @@
11{ stdenv, fetchurl, fetchpatch, gdal, cmake, qt4, flex, bison, proj, geos, xlibsWrapper, sqlite, gsl
22, qwt, fcgi, python2Packages, libspatialindex, libspatialite, qscintilla, postgresql, makeWrapper
33, qjson, qca2, txt2tags, openssl, darwin, pkgconfig
4−, withGrass ? false, grass, IOKit, ApplicationServices
4+, withGrass ? true, grass, IOKit, ApplicationServices
55}:
66
77stdenv.mkDerivation rec {
@@ -58,11 +58,13 @@ stdenv.mkDerivation rec {
5858 '') +
5959 (stdenv.lib.optionalString stdenv.isDarwin ''
6060 # Necessary for QGIS to find the correct default GRASS path
61+ # Plugins look for gdal tools like deminfo on the PATH
6162 ${stdenv.lib.optionalString withGrass "ln -sf ${grass} $out/QGIS.app/Contents/MacOS/grass"}
6263 for file in $(find $out -type f -name "QGIS"); do
6364 wrapProgram "$file" \
6465 --prefix DYLD_LIBRARY_PATH : "${qwt}/lib" \
6566 --prefix DYLD_LIBRARY_PATH : "${qscintilla}/lib" \
67+ --prefix PATH : "${gdal}/bin" \
6668 ${stdenv.lib.optionalString withGrass "--prefix PATH : ${grass}/bin"} \
6769 --set PYTHONPATH $PYTHONPATH
6870 done
@@ -75,6 +77,6 @@ stdenv.mkDerivation rec {
7577 homepage = http://www.qgis.org;
7678 license = stdenv.lib.licenses.gpl2Plus;
7779 platforms = with stdenv.lib.platforms; unix;
78− maintainers = with stdenv.lib.maintainers; [viric];
80+ maintainers = with stdenv.lib.maintainers; [viric mpickering];
7981 };
8082}