diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2018-04-13 00:09:32 +0100 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2018-04-13 21:02:55 +0100 |
commit | a134b9354b2221dbe111cc0f7be0f5ac5070cc19 (patch) | |
tree | 73edf7e004bbfadae5b442078b5e54896e16c7b2 /pkgs/applications/gis/qgis | |
parent | a3de225864018f311ab59f884a27dcd81e60642b (diff) |
QGIS: Allow plugins to find GDAL tools by looking on PATH
Diffstat (limited to 'pkgs/applications/gis/qgis')
-rw-r--r-- | pkgs/applications/gis/qgis/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/gis/qgis/default.nix b/pkgs/applications/gis/qgis/default.nix index 75f980c6781ba..5d7e70227fc3f 100644 --- a/pkgs/applications/gis/qgis/default.nix +++ b/pkgs/applications/gis/qgis/default.nix @@ -58,11 +58,13 @@ stdenv.mkDerivation rec { '') + (stdenv.lib.optionalString stdenv.isDarwin '' # Necessary for QGIS to find the correct default GRASS path + # Plugins look for gdal tools like deminfo on the PATH ${stdenv.lib.optionalString withGrass "ln -sf ${grass} $out/QGIS.app/Contents/MacOS/grass"} for file in $(find $out -type f -name "QGIS"); do wrapProgram "$file" \ --prefix DYLD_LIBRARY_PATH : "${qwt}/lib" \ --prefix DYLD_LIBRARY_PATH : "${qscintilla}/lib" \ + --prefix PATH : "${gdal}/bin" \ ${stdenv.lib.optionalString withGrass "--prefix PATH : ${grass}/bin"} \ --set PYTHONPATH $PYTHONPATH done |