2011-07-08 22:24:01 +01:00
|
|
|
{stdenv, fetchurl}:
|
2006-02-02 17:07:07 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "lua-4.0.1";
|
2011-07-08 22:24:01 +01:00
|
|
|
|
2006-02-02 17:07:07 +00:00
|
|
|
src = fetchurl {
|
2007-08-24 13:32:36 +01:00
|
|
|
url = http://www.lua.org/ftp/lua-4.0.1.tar.gz;
|
2006-02-02 17:07:07 +00:00
|
|
|
md5 = "a31d963dbdf727f9b34eee1e0d29132c";
|
|
|
|
};
|
2011-07-08 22:24:01 +01:00
|
|
|
|
|
|
|
configurePhase = "sed -i -e 's/CFLAGS= -O2/CFLAGS = -O3 -fPIC/' config";
|
|
|
|
buildFlags = "all so sobin";
|
|
|
|
installFlags = "INSTALL_ROOT=$$out";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.lua.org";
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Powerful, fast, lightweight, embeddable scripting language";
|
2011-07-08 22:24:01 +01:00
|
|
|
longDescription = ''
|
|
|
|
Lua combines simple procedural syntax with powerful data
|
|
|
|
description constructs based on associative arrays and extensible
|
|
|
|
semantics. Lua is dynamically typed, runs by interpreting bytecode
|
|
|
|
for a register-based virtual machine, and has automatic memory
|
|
|
|
management with incremental garbage collection, making it ideal
|
|
|
|
for configuration, scripting, and rapid prototyping.
|
|
|
|
'';
|
|
|
|
license = "MIT";
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ ];
|
|
|
|
};
|
2006-02-02 17:07:07 +00:00
|
|
|
}
|