Warning
This project is very immature, so expect any functionality to be broken. Please don't hesitate to open an issue.
A dependency manager for Nelua.
Null requires these dependencies to work:
curl
commandtar
commandsha256sum
command
Once you have those dependencies, clone this repository or download init.lua
as null.lua
and then require it in your project's .neluacfg.lua
return require("null") {
name = "project",
version = "0.0.0",
dependencies = {},
}
You can pass anything that's a valid Nelua configuration, e.g add_path
or {c,ld}flags
.
Warning
This field is used to create a directory, and it isn't sanitized on retrieving the field. This will be fixed in the next release.
The project name, can be anything.
Warning
This field is used to create a directory, and it isn't sanitized on retrieving the field. This will be fixed in the next release.
The version of the project, must be a SemVer format.
Dependencies required for the project, the key is a string represents the identifier of the dependency, and the value is a specification of the required dependency. (See below)
URL to where the tarball resides.
A checksum of the tarball, currently only support SHA-256.
Note
This functionality might changed in the next release.
Local path to dependency directory, if none found then fallback to fetching tarball source.