luaPackages.luaexpat: fix build on darwin

This commit is contained in:
Vincent Laporte 2017-01-31 05:05:07 +00:00
parent 1128726064
commit 61c48d9c45

View File

@ -112,6 +112,11 @@ let
buildInputs = [ expat ];
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile \
--replace '-shared' '-bundle -undefined dynamic_lookup -all_load'
'';
preBuild = ''
makeFlagsArray=(
LUA_LDIR="$out/share/lua/${lua.luaversion}"
@ -121,7 +126,7 @@ let
meta = {
homepage = "http://matthewwild.co.uk/projects/luaexpat";
hydraPlatforms = stdenv.lib.platforms.linux;
hydraPlatforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.flosse ];
};
};