summary refs log tree commit diff
path: root/pkgs/applications/gis/grass
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2018-04-13 00:03:31 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2018-04-13 21:02:53 +0100
commitb65181d78b61464966da493a635004fbc3161a70 (patch)
treed2eb952a69a3060064cbd325a246ac4c3b88c377 /pkgs/applications/gis/grass
parenta415a95e7c520b1f0f86c9729a54f5c8e7bd416c (diff)
downloadnixlib-b65181d78b61464966da493a635004fbc3161a70.tar
nixlib-b65181d78b61464966da493a635004fbc3161a70.tar.gz
nixlib-b65181d78b61464966da493a635004fbc3161a70.tar.bz2
nixlib-b65181d78b61464966da493a635004fbc3161a70.tar.lz
nixlib-b65181d78b61464966da493a635004fbc3161a70.tar.xz
nixlib-b65181d78b61464966da493a635004fbc3161a70.tar.zst
nixlib-b65181d78b61464966da493a635004fbc3161a70.zip
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.
Diffstat (limited to 'pkgs/applications/gis/grass')
-rw-r--r--pkgs/applications/gis/grass/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/gis/grass/default.nix b/pkgs/applications/gis/grass/default.nix
index 8353bce1b847..3e0089efa6d0 100644
--- a/pkgs/applications/gis/grass/default.nix
+++ b/pkgs/applications/gis/grass/default.nix
@@ -35,6 +35,9 @@ stdenv.mkDerivation {
     "--with-blas"
   ];
 
+  # Otherwise a very confusing "Can't load GDAL library" error
+  makeFlags = stdenv.lib.optional stdenv.isDarwin "GDAL_DYNAMIC=";
+
   /* Ensures that the python script run at build time are actually executable;
    * otherwise, patchShebangs ignores them.  */
   postConfigure = ''