about summary refs log tree commit diff
path: root/maintainers/scripts
diff options
context:
space:
mode:
authorMatthieu C. <886074+teto@users.noreply.github.com>2024-05-31 17:42:08 +0200
committerMatthieu C. <886074+teto@users.noreply.github.com>2024-05-31 19:59:29 +0200
commit2ea757a0299331deda57fda9395cf2592ee460ee (patch)
tree7308ab4f5eb67671b6673cf2e4249aa5e992a49c /maintainers/scripts
parent5ceeafa47de0b2e842354147fafc39d567e4cd9c (diff)
luaPackages.luarocks: generate luarocks as well
When installing a lua package that depends on luarocks, luarocks was not
capable of recognizing the luarocks module: https://github.com/NixOS/nixpkgs/issues/316009 .

As explained here https://github.com/luarocks/luarocks/issues/1659,
luarocks needs a manifest to recognize the package.
I first attempted to generate a manifest with `luarocks-admin
make-manifest` on our current manual luarocks derivation but this ended
up being too hackish as the `make-manifest` requires a .rockspec or
.rock to work, which we had not.

It seemed simpled to just rename the current manual luarocks derivation to luarocks_bootstrap
in order to break cyclic dependencies in buildLuarocksPackage and add a
generated luarocks derivation. Previously it was impossible to test
luarocks because of the cyclic dependency but we will now be able to
test the generated derivation.
Diffstat (limited to 'maintainers/scripts')
-rw-r--r--maintainers/scripts/luarocks-packages.csv1
1 files changed, 1 insertions, 0 deletions
diff --git a/maintainers/scripts/luarocks-packages.csv b/maintainers/scripts/luarocks-packages.csv
index 23497e6d80d7d..e9d10e90b8d48 100644
--- a/maintainers/scripts/luarocks-packages.csv
+++ b/maintainers/scripts/luarocks-packages.csv
@@ -77,6 +77,7 @@ lualogging,,,,,,
 luaossl,,,,,5.1,
 luaposix,,,,34.1.1-1,,vyp lblasc
 luarepl,,,,,,
+luarocks,,,,,,mrcjkb teto
 luarocks-build-rust-mlua,,,,,,mrcjkb
 luarocks-build-treesitter-parser,,,,,,mrcjkb
 luasec,,,,,,flosse