Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RockSpec provider support #23

Open
tomodachi94 opened this issue Nov 12, 2022 · 3 comments
Open

RockSpec provider support #23

tomodachi94 opened this issue Nov 12, 2022 · 3 comments
Labels
enhancement New feature or request library: core Applies to `unicorn.core`

Comments

@tomodachi94
Copy link
Member

This would be the most portable provider. It would take a RockSpec and install it.

We would need to lock installs to rocks with no platform table or rocks that have the computercraft platform.

@tomodachi94 tomodachi94 added enhancement New feature or request library: core Applies to `unicorn.core` labels Nov 12, 2022
@Commandcracker
Copy link
Contributor

Maybe porting whole luarocks to CC is possible, the most stuff is written in Lua.

Some reference for the Rockspec-format

installing packages directly from luarocks

downloading packages from luarocks

https://luarocks.org/manifest
https://luarocks.org/manifests/<Uploader>/<Package-Name>-<Version>.rockspec
idk how to get the Uploader for a package but it should be somewhere here

crawling the luarocks web page might also be an option

https://luarocks.org/search?q=h
https://luarocks.org/modules/openresty/lua-cjson (example package)

check if a package / rockspec is pure lua

build.type = builtin (types)
build.platforms = nil
check if no file is ending with .c

some moor checks might also bee needed

@Commandcracker
Copy link
Contributor

Maybe porting whole luarocks to CC is possible, the most stuff is written in Lua.

-> Blue-Shiny-Rocks

@Commandcracker
Copy link
Contributor

installing packages directly from luarocks

-> Browse-rocks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request library: core Applies to `unicorn.core`
Projects
None yet
Development

No branches or pull requests

2 participants