luajit: support Darwin builds
This commit is contained in:
parent
96373a4041
commit
e5f7e4ec3c
@ -11,7 +11,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
patchPhase = stdenv.lib.optionalString (stdenv.gcc.libc != null)
|
patchPhase = ''
|
||||||
|
substituteInPlace Makefile \
|
||||||
|
--replace /usr/local $out
|
||||||
|
'' + stdenv.lib.optionalString (stdenv.gcc.libc != null)
|
||||||
''
|
''
|
||||||
substituteInPlace Makefile \
|
substituteInPlace Makefile \
|
||||||
--replace ldconfig ${stdenv.gcc.libc}/sbin/ldconfig
|
--replace ldconfig ${stdenv.gcc.libc}/sbin/ldconfig
|
||||||
@ -21,11 +24,11 @@ stdenv.mkDerivation rec {
|
|||||||
buildFlags = [ "amalg" ]; # Build highly optimized version
|
buildFlags = [ "amalg" ]; # Build highly optimized version
|
||||||
installPhase = "make install PREFIX=$out";
|
installPhase = "make install PREFIX=$out";
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "high-performance JIT compiler for Lua 5.1";
|
description = "high-performance JIT compiler for Lua 5.1";
|
||||||
homepage = http://luajit.org;
|
homepage = http://luajit.org;
|
||||||
license = stdenv.lib.licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
maintainers = [ maintainers.thoughtpolice ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user