grass: Fix Can't load GDAL library errors on darwin
It is required to pass this extra flag to the build to avoid trying to
dynamically load the library.
commitb65181d78b61464966da493a635004fbc3161a70
authorMatthew Pickering <matthewtpickering@gmail.com>
dateFri 13 Apr 2018, 00:03 (9 years ago)
parenta415a95
pkgs/applications/gis/grass/default.nix+3
@@ -35,6 +35,9 @@ stdenv.mkDerivation {
3535 "--with-blas"
3636 ];
3737
38+ # Otherwise a very confusing "Can't load GDAL library" error
39+ makeFlags = stdenv.lib.optional stdenv.isDarwin "GDAL_DYNAMIC=";
40+
3841 /* Ensures that the python script run at build time are actually executable;
3942 * otherwise, patchShebangs ignores them. */
4043 postConfigure = ''