mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
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?
This commit is contained in:
parent
f97bfcec99
commit
b0bfa88848
@ -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
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user