Fix lua lpeg on OSX
This commit is contained in:
parent
a81cfcc475
commit
9fbd1fdccc
|
@ -229,6 +229,12 @@ let
|
||||||
};
|
};
|
||||||
buildInputs = [ unzip ];
|
buildInputs = [ unzip ];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
makeFlagsArray=(CC=$CC);
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildFlags = if stdenv.isDarwin then "macosx" else "";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/lib/lua/${lua.luaversion}
|
mkdir -p $out/lib/lua/${lua.luaversion}
|
||||||
install -p lpeg.so $out/lib/lua/${lua.luaversion}
|
install -p lpeg.so $out/lib/lua/${lua.luaversion}
|
||||||
|
@ -237,7 +243,7 @@ let
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://www.inf.puc-rio.br/~roberto/lpeg/";
|
homepage = "http://www.inf.puc-rio.br/~roberto/lpeg/";
|
||||||
hydraPlatforms = stdenv.lib.platforms.linux;
|
hydraPlatforms = stdenv.lib.platforms.all;
|
||||||
license = stdenv.lib.licenses.mit;
|
license = stdenv.lib.licenses.mit;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue