about summary refs log tree commit diff
path: root/pkgs/applications/gis/grass/default.nix
diff options
context:
space:
mode:
authorTom Hinton <github@larkery.com>2016-12-16 15:10:23 +0000
committerGitHub <noreply@github.com>2016-12-16 15:10:23 +0000
commitb0bfa88848cddb3011db8fb3465a25ec80e54da9 (patch)
treeefa4a7634109e8d96871a1ecffeee94deb12d6ed /pkgs/applications/gis/grass/default.nix
parentf97bfcec9991d45a95398c29c038b416f54da9f2 (diff)
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?
Diffstat (limited to 'pkgs/applications/gis/grass/default.nix')
-rw-r--r--pkgs/applications/gis/grass/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/applications/gis/grass/default.nix b/pkgs/applications/gis/grass/default.nix
index 44e07cc22c0b9..7d2828115f77c 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
   '';