git.iko.soy/typeable/nixpkgs
on master help sign in
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?

commitb0bfa88848cddb3011db8fb3465a25ec80e54da9 authorTom Hinton <github@larkery.com> dateFri 16 Dec 2016, 15:10 (10 years ago) parentf97bfce
1 file changed+1
pkgs/applications/gis/grass/default.nix+1
pkgs/applications/gis/grass/default.nix+1
@@ -60,6 +60,7 @@ stdenv.mkDerivation {
6060 wrapProgram $out/bin/grass70 \
6161 --set PYTHONPATH $PYTHONPATH \
6262 --set GRASS_PYTHON ${python2Packages.python}/bin/${python2Packages.python.executable}
63+ --suffix LD_LIBRARY_PATH ':' '${gdal}/lib'
6364 ln -s $out/grass-*/lib $out/lib
6465 '';
6566