luajit: adopt, upgrade, optimize
- Build the 'amalgamation' by default - more RAM needed to build, but better overall performance - Upgrade to version 2.0.3 - Adopt as maintainer Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
692ee73af1
commit
29c0d0047f
@ -1,28 +1,31 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec{
|
stdenv.mkDerivation rec {
|
||||||
version = "2.0.2";
|
name = "luajit-${version}";
|
||||||
name = "LuaJIT-${version}";
|
version = "2.0.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url="http://luajit.org/download/${name}.tar.gz";
|
url = "http://luajit.org/download/LuaJIT-${version}.tar.gz";
|
||||||
sha256="0f3cykihfdn3gi6na9p0xjd4jnv26z18m441n5vyg42q9abh4ln0";
|
sha256 = "0ydxpqkmsn2c341j4r2v6r5r0ig3kbwv3i9jran3iv81s6r6rgjm";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = stdenv.lib.optionalString (stdenv.gcc.libc != null)
|
enableParallelBuilding = true;
|
||||||
''
|
|
||||||
substituteInPlace Makefile \
|
|
||||||
--replace ldconfig ${stdenv.gcc.libc}/sbin/ldconfig
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
patchPhase = stdenv.lib.optionalString (stdenv.gcc.libc != null)
|
||||||
make install PREFIX=$out
|
''
|
||||||
'';
|
substituteInPlace Makefile \
|
||||||
|
--replace ldconfig ${stdenv.gcc.libc}/sbin/ldconfig
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
configurePhase = false;
|
||||||
description= "Just-in-time compiler and interpreter for lua 5.1.";
|
buildFlags = [ "amalg" ]; # Build highly optimized version
|
||||||
homepage = http://luajit.org;
|
installPhase = "make install PREFIX=$out";
|
||||||
license = stdenv.lib.licenses.mit;
|
|
||||||
platorms = stdenv.lib.platforms.linux;
|
meta = {
|
||||||
};
|
description = "high-performance JIT compiler for Lua 5.1";
|
||||||
|
homepage = http://luajit.org;
|
||||||
|
license = stdenv.lib.licenses.mit;
|
||||||
|
platforms = stdenv.lib.platforms.linux;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user