2013-12-15 06:04:07 +00:00
|
|
|
{ stdenv, fetchurl }:
|
2013-11-15 16:20:29 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec{
|
|
|
|
version = "2.0.2";
|
|
|
|
name = "LuaJIT-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2013-11-15 16:41:33 +00:00
|
|
|
url="http://luajit.org/download/${name}.tar.gz";
|
2013-11-15 16:20:29 +00:00
|
|
|
sha256="0f3cykihfdn3gi6na9p0xjd4jnv26z18m441n5vyg42q9abh4ln0";
|
|
|
|
};
|
|
|
|
|
2013-12-15 16:12:35 +00:00
|
|
|
patchPhase = stdenv.lib.optionalString (stdenv.gcc.libc != null)
|
|
|
|
''
|
2013-12-15 06:04:07 +00:00
|
|
|
substituteInPlace Makefile \
|
2013-12-15 16:12:35 +00:00
|
|
|
--replace ldconfig ${stdenv.gcc.libc}/sbin/ldconfig
|
2013-12-15 06:04:07 +00:00
|
|
|
'';
|
|
|
|
|
2013-11-15 16:20:29 +00:00
|
|
|
installPhase = ''
|
|
|
|
make install PREFIX=$out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description= "Just-in-time compiler and interpreter for lua 5.1.";
|
|
|
|
homepage = http://luajit.org;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
2013-12-15 16:12:35 +00:00
|
|
|
platorms = stdenv.lib.platforms.linux;
|
2013-11-15 16:20:29 +00:00
|
|
|
};
|
|
|
|
}
|