From b65181d78b61464966da493a635004fbc3161a70 Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Fri, 13 Apr 2018 00:03:31 +0100 Subject: 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. --- pkgs/applications/gis/grass/default.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkgs/applications/gis/grass') 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 = '' -- cgit 1.4.1