$ luarocks install sysdetect
A library to detect the operating system and architecture without forking a
subprocess.
We are not going for an exhaustive list of every historical system here, but
we're aiming to cover at least every platform where LuaRocks is known to run.
If your system is not detected, patches are welcome!