diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index e4267fb4f319..e58df1f42c33 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -36,6 +36,10 @@ let buildFlags = stdenv.lib.optionalString stdenv.isDarwin "macosx"; + postPatch = stdenv.lib.optionalString stdenv.isDarwin '' + substituteInPlace Makefile --replace 10.4 10.5 + ''; + preBuild = '' makeFlagsArray=( ${stdenv.lib.optionalString stdenv.cc.isClang "CC=$CC"}