I am also interested in this problem
Including things from luarocks can be difficult, especially if you're trying to support all three OSes Mudlet is available for, as several of them include c bindings. For just personal use you can setup luarocks to use the same build chain as Mudlet and install them using LuaRocks as normal, but for sharing with others I've yet to come up with a good workflow for that. I did get started on working one out that I could use to repackage luarocks as mpackages but haven't had time to properly test it. graphviz will almost certainly have c bindings though