For a detail description of the configuration file syntax, see: https://github.com/luarocks/luarocks/blob/main/docs/index.md
The description given in this manual page reflects the settings needed to integrate Lua and luarocks properly into WA2L/edrc.
  local APPROOT    = os_getenv("APPROOT")
  local OSID       = os_getenv("OSID")
  local LIBC       = os_getenv("LIBC")
  local LUAVERSION = os_getenv("LUAVERSION")
Whereas APPROOT contains the output of approot, OSID the output of osid, LIBC the output of glibc.version and LUAVERSION contains the output of luaversion.
  rocks_trees = {
      { name = "system", root = APPROOT .. "/lib/lua/lum/" .. OSID .. "/" .. LUAVERSION };
  }
lib_modules_path = "lib/lua/" .. LUAVERSION .. "/" .. LIBC
After installing a package/module that provides compiled libraries into the lib_modules_path directory edrc/lib/lua/lum/<OSID>/<major>.<minor>/lib/lua/<major>.<minor>/<GLIBC>/ ensure to manually create the related symbolic links in edrc/lib/lua/lum/<OSID>/<major>.<minor>/lib/lua/<major>.<minor>/ and edrc/lib/lua/lum/<OSID>/<major>.<minor>/lib/lua/<major>.<minor>/<GLIBC>/ to provide maximal portability.
  variables = {
      LUA_DIR     = APPROOT .. "/bin/" .. OSID;
      LUA_INCDIR  = APPROOT .. "/lib/" .. OSID .. "/includes";
      LUA_BINDIR  = APPROOT .. "/bin/" .. OSID .. "/" .. LIBC;
      LUA_LIBDIR  = APPROOT .. "/lib/" .. OSID .. "/" .. LIBC .. "libs";
      LUA_VERSION = LUAVERSION;
      LUA         = APPROOT .. "/bin/" .. OSID .. "/" .. LIBC .. "lua";
  }
This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.