Module luarocks.build

Module implementing the LuaRocks "build" command. Builds a rock, compiling its C parts if any.

Functions

build_rockspec (rockspec_file, need_to_fetch, minimal_mode) Build and install a rock given a rockspec.
run (name, version) Driver function for "build" command.


Functions

build_rockspec (rockspec_file, need_to_fetch, minimal_mode)
Build and install a rock given a rockspec.

Parameters

  • rockspec_file: string: local or remote filename of a rockspec.
  • need_to_fetch: boolean: true if sources need to be fetched, false if the rockspec was obtained from inside a source rock.
  • minimal_mode:

Return value:

boolean or (nil, string): True if succeeded or nil and an error message.
run (name, version)
Driver function for "build" command.

Parameters

  • name: string: A local or remote rockspec or rock file. If a package name is given, forwards the request to "search" and, if returned a result, installs the matching rock.
  • version: string: When passing a package name, a version number may also be given.

Return value:

boolean or (nil, string): True if build was successful; nil and an error message otherwise.

Valid XHTML 1.0!