Packaging Luarocks #2224
Replies: 2 comments 2 replies
-
Well, where do you want to install it? |
Beta Was this translation helpful? Give feedback.
-
I think we used to package Lua rocks, and then decided to stop and just vendor them into the formulae that need them. I haven't really been able to dig into the reasons why, but @DomT4 might remember if they have time to chime in. Assuming the reasons for not packaging Lua rocks no longer apply: why not just install it into its own prefix? It'll get symlinked into Also, why can't you just vendor Fennel's dependencies into its own prefix just like with other formulae that need Lua rocks? |
Beta Was this translation helpful? Give feedback.
-
I am looking into packaging Luaposix and the Lua bindings for Readline. These are Lua packages that are typically distributed and installed using Luarocks.
I want to package these because Readline is an optional dependency of Fennel.
I wasn't able to find a single example of a Lua/Luarocks library in the Homebrew Core repo! I see some instances of Lua dependencies being downloaded as "resources", but not packaged as standalone Formulas.
What is the recommended procedure for packaging Luarocks packages?
I got as far as this:
This successfully builds the C extensions in-place and saves them to
buildpath/"macos"
, but I'm not sure what to do next.Beta Was this translation helpful? Give feedback.
All reactions