lua-sockets: fix on darwin

This commit is contained in:
Vincent Laporte 2016-08-24 21:26:53 +02:00
parent 44dc13aad6
commit b8ed622bbb

View File

@ -192,6 +192,11 @@ let
patchPhase = ''
sed -e "s,^LUAPREFIX_linux.*,LUAPREFIX_linux=$out," \
-i src/makefile
'' + stdenv.lib.optionalString stdenv.isDarwin ''
export PLAT=macosx
export LUAPREFIX_macosx=$out
substituteInPlace src/Makefile --replace gcc cc \
--replace 10.3 10.5
'';
meta = {