unixODBCDrivers.mariadb: fix cross

Without these variables, it will try to run odbc-config, which the
build platform might not be able to execute.
This commit is contained in:
Alyssa Ross 2023-05-22 23:58:54 +00:00
parent ec873be72f
commit 427dbe5140
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -52,6 +52,8 @@
'';
cmakeFlags = [
"-DODBC_LIB_DIR=${lib.getLib unixODBC}/lib"
"-DODBC_INCLUDE_DIR=${lib.getDev unixODBC}/include"
"-DWITH_OPENSSL=ON"
# on darwin this defaults to ON but we want to build against unixODBC
"-DWITH_IODBC=OFF"