Can kubernetes ingress controller plugins use packages from luarocks?

I need the lua-zlib package in order to create a plugin that inflates requests, but I can not see a way of installing packages from luarocks? I have a feeling this is not possible since the docs say you can’t install plugins themselves directly from luarocks?

Note that I am using the ingress controller.