moonlibs icon indicating copy to clipboard operation
moonlibs copied to clipboard

LuaRocks support

Open iongion opened this issue 7 years ago • 6 comments

Can the libraries be pushed to this dependency manager called luarocks ? Example: https://github.com/starwing/lua-nanovg/blob/master/rockspecs/glfw-0.1.1-1.rockspec

iongion avatar Aug 03 '18 13:08 iongion

Hi, I am not that familiar with LuaRocks. Every once in a while I tell myself that I should push there the libraries, but when I start reading the documentation I get soon lost and start thinking "how should this be easier than just git clone + make + make install?". Is there any real advantage that I don't see in using it, other than reserving the library names?

stetre avatar Aug 03 '18 14:08 stetre

Because it is easy to reuse in other projects as a dependency. Besides this, your glfw implementation looks much more complete than https://github.com/starwing/lua-nanovg/blob/master/rockspecs/glfw-0.1.1-1.rockspec and would be a great improvement for both projects.

iongion avatar Aug 06 '18 07:08 iongion

Is it really easier? I haven't used it for a while, but when some time ago I tried to install a few things I ran into all sorts of problems. I suspect that the approach of pushing software to a package manager is by itself problematic (usually it is pulled by the maintainers of the platform or distribution served by the package manager, not pushed by the software authors). Not to mention having yet another package manager in coexistence with the native one of the platform being used, like apt on Ubuntu, or pacman on MSYS2.

stetre avatar Aug 06 '18 23:08 stetre

Is it really easier? I haven't used it for a while, but when some time ago I tried to install a few things I ran into all sorts of problems. I suspect that the approach of pushing software to a package manager is by itself problematic (usually it is pulled by the maintainers of the platform or distribution served by the package manager, not pushed by the software authors). Not to mention having yet another package manager in coexistence with the native one of the platform being used, like apt on Ubuntu, or pacman on MSYS2.

It absolutly is easier, just one command to install packages luarocks install moonnuklear, etc, makes using these libraries wayyy easier

Frityet avatar Dec 17 '22 02:12 Frityet

I created this github organisation to make these libraries use LuaRocks

Frityet avatar Dec 17 '22 21:12 Frityet

I created this github organisation to make these libraries use LuaRocks

That's fine with me. After all, it's in the spirit of my last comment: if anyone wants to package the libraries for distribution with its preferred package manager (be it LuaRocks or a OS specific one), he/she is free to pull them and do it. I don't want to do it personally, but I surely appreciate the effort.

When you think the project is in a usable state, let me know and I'll reference it in the manual page.

stetre avatar Dec 18 '22 09:12 stetre