about summary refs log tree commit diff
path: root/pkgs/applications/gis/grass/default.nix
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/default.nix
parenta415a95e7c520b1f0f86c9729a54f5c8e7bd416c (diff)
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/default.nix')
-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 8353bce1b8476..3e0089efa6d04 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 = ''