git.iko.soy/typeable/nixpkgs
on master help sign in
lua-sockets: fix on darwin
commitb8ed622bbbe9811cd3c21c45c5277fca523c45eb authorVincent Laporte <Vincent.Laporte@gmail.com> dateWed 24 Aug 2016, 21:26 (10 years ago) parent44dc13a
1 file changed+5
pkgs/top-level/lua-packages.nix+5
pkgs/top-level/lua-packages.nix+5
@@ -192,6 +192,11 @@ let
192192 patchPhase = ''
193193 sed -e "s,^LUAPREFIX_linux.*,LUAPREFIX_linux=$out," \
194194 -i src/makefile
195+ '' + stdenv.lib.optionalString stdenv.isDarwin ''
196+ export PLAT=macosx
197+ export LUAPREFIX_macosx=$out
198+ substituteInPlace src/Makefile --replace gcc cc \
199+ --replace 10.3 10.5
195200 '';
196201
197202 meta = {