lua: add version 5.1

The 5.1 build system doesn't seem to support building a shared object anymore?
This commit is contained in:
Peter Simons 2012-10-10 19:24:37 +02:00
parent c35a43315c
commit a352796e0d
2 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,30 @@
{ stdenv, fetchurl, readline}:
stdenv.mkDerivation rec {
name = "lua-5.1.5";
src = fetchurl {
url = "http://www.lua.org/ftp/${name}.tar.gz";
sha256 = "2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333";
};
buildInputs = [ readline ];
configurePhase = "makeFlagsArray=( INSTALL_TOP=$out INSTALL_MAN=$out/share/man/man1 PLAT=linux )";
meta = {
homepage = "http://www.lua.org";
description = "Lua is a powerful, fast, lightweight, embeddable scripting language.";
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 = [ ];
};
}

View File

@ -2716,10 +2716,9 @@ let
love = callPackage ../development/interpreters/love {};
lua4 = callPackage ../development/interpreters/lua-4 { };
lua5 = callPackage ../development/interpreters/lua-5 { };
lua5_0 = callPackage ../development/interpreters/lua-5/5.0.3.nix { };
lua5_1 = callPackage ../development/interpreters/lua-5/5.1.nix { };
maude = callPackage ../development/interpreters/maude { };