From b8ed622bbbe9811cd3c21c45c5277fca523c45eb Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 24 Aug 2016 21:26:53 +0200 Subject: [PATCH] lua-sockets: fix on darwin --- pkgs/top-level/lua-packages.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index c065ac8290a3..83499fa32184 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -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 = {