1 { lua, writeText, toLuaModule }:
4 , propagatedBuildInputs ? [ ]
10 throw "${attrs.name} not supported by interpreter lua-${lua.luaversion}"
12 toLuaModule (lua.stdenv.mkDerivation (
14 name = "lua${lua.luaversion}-" + attrs.pname + "-" + attrs.version;
18 "LUA_INC=-I${lua}/include"
19 "LUA_LIBDIR=$(out)/lib/lua/${lua.luaversion}"
20 "LUA_VERSION=${lua.luaversion}"
23 propagatedBuildInputs = propagatedBuildInputs ++ [
24 lua # propagate it for its setup-hook