luarocks 安装本地源

luarocks install local source

我正在编辑 nn 库中的一个文件。它有一个 rockspec 文件。当我 luarocks 安装那个 rockspec 文件时,它会下载 git 源代码。我希望它使用我的本地资源。 rockspec 文件有各种我不想手动调用的编译时命令行乱码。像 $ luarocks install nn.rockspec --source='~/nn' 这样的东西会很棒。

本地源需要进入目录下发:

luarocks make rocks/nn-scm-1.rockspec