Though it's quite rare to see in the wild, luarocks supports lockfiles:
https://github.com/luarocks/luarocks/wiki/Pinning-versions-with-a-lock-file
Only example I know is:
https://github.com/luarocks/luarocks-site/blob/master/luarocks.lock
this is a lua file but simple enough that it can be parsed robustly (at least more easily than the rockspec).
This means it could be parsed directly via nix and in the case we are interested in fetching only dependencies (like in neorocks). The interesting aspect of this for luarocks-nix is to pin dependencies but it could be interesting for nixpkgs too.
cc @mrcjkb
Though it's quite rare to see in the wild, luarocks supports lockfiles:
https://github.com/luarocks/luarocks/wiki/Pinning-versions-with-a-lock-file
Only example I know is:
https://github.com/luarocks/luarocks-site/blob/master/luarocks.lock
this is a lua file but simple enough that it can be parsed robustly (at least more easily than the rockspec).
This means it could be parsed directly via nix and in the case we are interested in fetching only dependencies (like in neorocks). The interesting aspect of this for luarocks-nix is to pin dependencies but it could be interesting for nixpkgs too.
cc @mrcjkb