From 427dbe5140e890914a2e5fab41cf84775af3b15e Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 22 May 2023 23:58:54 +0000 Subject: [PATCH] unixODBCDrivers.mariadb: fix cross Without these variables, it will try to run odbc-config, which the build platform might not be able to execute. --- pkgs/development/libraries/unixODBCDrivers/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/unixODBCDrivers/default.nix b/pkgs/development/libraries/unixODBCDrivers/default.nix index 16b7c1aa024..d29ea557b1f 100644 --- a/pkgs/development/libraries/unixODBCDrivers/default.nix +++ b/pkgs/development/libraries/unixODBCDrivers/default.nix @@ -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"