diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/unixODBCDrivers/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/unixODBCDrivers/default.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/development/libraries/unixODBCDrivers/default.nix b/nixpkgs/pkgs/development/libraries/unixODBCDrivers/default.nix index 1e5149683d4c..d29ea557b1f2 100644 --- a/nixpkgs/pkgs/development/libraries/unixODBCDrivers/default.nix +++ b/nixpkgs/pkgs/development/libraries/unixODBCDrivers/default.nix @@ -20,11 +20,10 @@ }; meta = with lib; { - broken = stdenv.isDarwin; description = "Official PostgreSQL ODBC Driver"; homepage = "https://odbc.postgresql.org/"; license = licenses.lgpl2; - platforms = platforms.linux; + platforms = platforms.unix; }; }; @@ -47,10 +46,14 @@ preConfigure = '' # we don't want to build a .pkg - sed -i 's/ADD_SUBDIRECTORY(osxinstall)//g' CMakeLists.txt + substituteInPlace CMakeLists.txt \ + --replace "IF(APPLE)" "IF(0)" \ + --replace "CMAKE_SYSTEM_NAME MATCHES AIX" "APPLE" ''; 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" @@ -62,7 +65,6 @@ }; meta = with lib; { - broken = stdenv.isDarwin; description = "MariaDB ODBC database driver"; homepage = "https://downloads.mariadb.org/connector-odbc/"; license = licenses.gpl2; @@ -126,11 +128,10 @@ }; meta = with lib; { - broken = stdenv.isDarwin; description = "ODBC driver for SQLite"; homepage = "http://www.ch-werner.de/sqliteodbc"; license = licenses.bsd2; - platforms = platforms.linux; + platforms = platforms.unix; maintainers = with maintainers; [ vlstill ]; }; }; |