Skip to content

Commit

Permalink
Merge pull request #230754 from wegank/tiledb-darwin
Browse files Browse the repository at this point in the history
gdal: fix build on x86_64-darwin
  • Loading branch information
wegank authored May 9, 2023
2 parents 32c81c7 + 3edf6e1 commit 7013a2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/development/libraries/gdal/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
, libspatialite
, sqlite
, libtiff
, useTiledb ? !(stdenv.isDarwin && stdenv.isx86_64)
, tiledb
, libwebp
, xercesc
Expand Down Expand Up @@ -91,6 +92,8 @@ stdenv.mkDerivation rec {
"-DCMAKE_SKIP_BUILD_RPATH=ON" # without, libgdal.so can't find libmariadb.so
] ++ lib.optionals stdenv.isDarwin [
"-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON"
] ++ lib.optionals (!useTiledb) [
"-DGDAL_USE_TILEDB=OFF"
];

buildInputs = [
Expand Down Expand Up @@ -135,7 +138,9 @@ stdenv.mkDerivation rec {
libspatialite
sqlite
libtiff
] ++ lib.optionals useTiledb [
tiledb
] ++ [
libwebp
zlib
zstd
Expand Down

0 comments on commit 7013a2c

Please sign in to comment.