luaPackages.luazlib: fix on darwin

This commit is contained in:
Vincent Laporte 2017-01-31 03:00:11 +00:00 committed by vbgl
parent 8ba82f28bc
commit 0860b8d5d1

View File

@ -251,20 +251,22 @@ let
buildInputs = [ zlib ];
preConfigure = "substituteInPlace Makefile --replace gcc cc --replace '-llua' ''";
preBuild = ''
makeFlagsArray=(
${platformString}
LUAPATH="$out/share/lua/${lua.luaversion}"
LUACPATH="$out/lib/lua/${lua.luaversion}"
INCDIR="-I${lua}/include"
LIBDIR="-L$out/lib");
LIBDIR="-L${lua}/lib");
'';
preInstall = "mkdir -p $out/lib/lua/${lua.luaversion}";
meta = with stdenv.lib; {
homepage = https://github.com/brimworks/lua-zlib;
hydraPlatforms = platforms.linux;
hydraPlatforms = platforms.unix;
license = licenses.mit;
maintainers = [ maintainers.koral ];
};