unixODBCDrivers.mariadb: fix build on darwin
This commit is contained in:
parent
f514e5c53d
commit
1d79f89ff7
1 changed files with 7 additions and 2 deletions
|
@ -64,12 +64,13 @@
|
||||||
buildInputs = [ unixODBC openssl libiconv zlib ]
|
buildInputs = [ unixODBC openssl libiconv zlib ]
|
||||||
++ lib.optionals stdenv.isDarwin [ libkrb5 ];
|
++ lib.optionals stdenv.isDarwin [ libkrb5 ];
|
||||||
|
|
||||||
preConfigure = ''
|
# TODO: remove preConfigure on staging
|
||||||
|
preConfigure = if !stdenv.isDarwin then ''
|
||||||
# we don't want to build a .pkg
|
# we don't want to build a .pkg
|
||||||
substituteInPlace CMakeLists.txt \
|
substituteInPlace CMakeLists.txt \
|
||||||
--replace "IF(APPLE)" "IF(0)" \
|
--replace "IF(APPLE)" "IF(0)" \
|
||||||
--replace "CMAKE_SYSTEM_NAME MATCHES AIX" "APPLE"
|
--replace "CMAKE_SYSTEM_NAME MATCHES AIX" "APPLE"
|
||||||
'';
|
'' else null;
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DWITH_EXTERNAL_ZLIB=ON"
|
"-DWITH_EXTERNAL_ZLIB=ON"
|
||||||
|
@ -80,6 +81,10 @@
|
||||||
"-DWITH_IODBC=OFF"
|
"-DWITH_IODBC=OFF"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
buildFlags = if stdenv.isDarwin then [ "maodbc" ] else null;
|
||||||
|
|
||||||
|
installTargets = if stdenv.isDarwin then [ "install/fast" ] else null;
|
||||||
|
|
||||||
# see the top of the file for an explanation
|
# see the top of the file for an explanation
|
||||||
passthru = {
|
passthru = {
|
||||||
fancyName = "MariaDB";
|
fancyName = "MariaDB";
|
||||||
|
|
Loading…
Reference in a new issue