2011-07-10 15:04:19 +01:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "lua-5.0.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.lua.org/ftp/lua-5.0.3.tar.gz;
|
|
|
|
sha256 = "1193a61b0e08acaa6eee0eecf29709179ee49c71baebc59b682a25c3b5a45671";
|
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = "sed -i -e 's/MYCFLAGS=.*/MYCFLAGS=-O3 -fomit-frame-pointer -fPIC/' config";
|
|
|
|
buildFlags = "all so sobin";
|
|
|
|
installFlags = "INSTALL_ROOT=$$out";
|
|
|
|
installTargets = "install soinstall";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.lua.org";
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Powerful, fast, lightweight, embeddable scripting language";
|
2011-07-10 15:04:19 +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.
|
|
|
|
'';
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2011-07-10 15:04:19 +01:00
|
|
|
};
|
|
|
|
}
|