From a134b9354b2221dbe111cc0f7be0f5ac5070cc19 Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Fri, 13 Apr 2018 00:09:32 +0100 Subject: QGIS: Allow plugins to find GDAL tools by looking on PATH --- pkgs/applications/gis/qgis/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs/applications/gis/qgis') 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 -- cgit 1.4.1