git.iko.soy/typeable/nixpkgs
on master help sign in
QGIS: Allow plugins to find GDAL tools by looking on PATH
commita134b9354b2221dbe111cc0f7be0f5ac5070cc19 authorMatthew Pickering <matthewtpickering@gmail.com> dateFri 13 Apr 2018, 00:09 (9 years ago) parenta3de225
1 file changed+2
pkgs/applications/gis/qgis/default.nix+2
pkgs/applications/gis/qgis/default.nix+2
@@ -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