luaPackages.luadbi: fix darwin build

This commit is contained in:
Orivej Desh 2017-12-09 11:52:28 +00:00
parent bcd0af9b3d
commit 54aafd15b2

View file

@ -212,6 +212,13 @@ let
buildInputs = [ libmysql postgresql sqlite ];
preConfigure = ''
substituteInPlace Makefile --replace CC=gcc CC=cc
'' + stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile \
--replace '-shared' '-bundle -undefined dynamic_lookup -all_load'
'';
NIX_CFLAGS_COMPILE = [
"-I${libmysql.dev}/include/mysql"
"-I${postgresql}/include/server"