gdal: fix cross-compilation

This commit is contained in:
Jonas Heinrich
2026-07-21 10:55:06 +02:00
parent b86de243c9
commit 65d6f84322
+4 -1
View File
@@ -79,8 +79,8 @@
xz,
zlib,
zstd,
buildPackages,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gdal" + lib.optionalString useMinimalFeatures "-minimal";
version = "3.13.1";
@@ -132,6 +132,9 @@ stdenv.mkDerivation (finalAttrs: {
# This is not strictly needed as the Java bindings wouldn't build anyway if
# ant/jdk were not available.
"-DBUILD_JAVA_BINDINGS=OFF"
]
++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
"-DCMAKE_CROSSCOMPILING_EMULATOR=${stdenv.hostPlatform.emulator buildPackages}"
];
buildInputs =