From b0bfa88848cddb3011db8fb3465a25ec80e54da9 Mon Sep 17 00:00:00 2001 From: Tom Hinton Date: Fri, 16 Dec 2016 15:10:23 +0000 Subject: [PATCH] Fiddle LD_LIBRARY_PATH to include GDAL Some GRASS functions dlopen GDAL, and don't get patched in the install. To make them work I have to export LD_LIBRARY_PATH from within grass again with pkgs.gdal/lib. Alternatively this does the trick - there might be a better way to do this, if the configure script can take the true path to gdal and reflect it in the dlopen calls or something? --- pkgs/applications/gis/grass/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/gis/grass/default.nix b/pkgs/applications/gis/grass/default.nix index 44e07cc22c0..7d2828115f7 100644 --- a/pkgs/applications/gis/grass/default.nix +++ b/pkgs/applications/gis/grass/default.nix @@ -60,6 +60,7 @@ stdenv.mkDerivation { wrapProgram $out/bin/grass70 \ --set PYTHONPATH $PYTHONPATH \ --set GRASS_PYTHON ${python2Packages.python}/bin/${python2Packages.python.executable} + --suffix LD_LIBRARY_PATH ':' '${gdal}/lib' ln -s $out/grass-*/lib $out/lib '';