2011-07-08 23:24:01 +02:00
|
|
|
{stdenv, fetchurl}:
|
2006-02-02 18:07:07 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "lua-4.0.1";
|
2011-07-08 23:24:01 +02:00
|
|
|
|
2006-02-02 18:07:07 +01:00
|
|
|
src = fetchurl {
|
2007-08-24 14:32:36 +02:00
|
|
|
url = http://www.lua.org/ftp/lua-4.0.1.tar.gz;
|
2016-09-10 19:57:03 +02:00
|
|
|
sha256 = "0ajd906hasii365xdihv9mdmi3cixq758blx0289x4znkha6wx6z";
|
2006-02-02 18:07:07 +01:00
|
|
|
};
|
2011-07-08 23:24:01 +02:00
|
|
|
|
|
|
|
configurePhase = "sed -i -e 's/CFLAGS= -O2/CFLAGS = -O3 -fPIC/' config";
|
|
|
|
buildFlags = "all so sobin";
|
|
|
|
installFlags = "INSTALL_ROOT=$$out";
|
|
|
|
|
2016-04-05 18:44:30 +02:00
|
|
|
hardeningDisable = stdenv.lib.optional stdenv.isi686 "stackprotector";
|
|
|
|
|
2011-07-08 23:24:01 +02:00
|
|
|
meta = {
|
|
|
|
homepage = "http://www.lua.org";
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Powerful, fast, lightweight, embeddable scripting language";
|
2011-07-08 23:24:01 +02: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 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2014-08-08 17:58:34 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2015-01-15 09:58:00 +01:00
|
|
|
branch = "4";
|
2011-07-08 23:24:01 +02:00
|
|
|
};
|
2006-02-02 18:07:07 +01:00
|
|
|
}
|