Skip to content

Commit

Permalink
luaPackages.luadbi: fix darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
orivej committed Dec 9, 2017
1 parent bcd0af9 commit 54aafd1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/top-level/lua-packages.nix
Expand Up @@ -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"
Expand Down

0 comments on commit 54aafd1

Please sign in to comment.