luaPackages.luadbi: fix darwin build
This commit is contained in:
@@ -212,6 +212,13 @@ let
|
|||||||
|
|
||||||
buildInputs = [ libmysql postgresql sqlite ];
|
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 = [
|
NIX_CFLAGS_COMPILE = [
|
||||||
"-I${libmysql.dev}/include/mysql"
|
"-I${libmysql.dev}/include/mysql"
|
||||||
"-I${postgresql}/include/server"
|
"-I${postgresql}/include/server"
|
||||||
|
|||||||
Reference in New Issue
Block a user