luaPackages.luarocks: add versionCheckHook

luarocks being wrapped by luarocks_bootstrap, there can be a confusion
between the 2. Rather than fixing this (since we might use lux anyway),
for now let's make sure both are upgraded at the same time and check
that with `versionCheckHook`.
This commit is contained in:
Matthieu C.
2025-06-09 01:13:40 +02:00
committed by teto
parent 130e159fbd
commit 794890dd31
@@ -50,6 +50,7 @@
tree-sitter,
unbound,
unzip,
versionCheckHook,
vimPlugins,
yajl,
zip,
@@ -577,10 +578,14 @@ in
installShellFiles
lua
unzip
versionCheckHook
];
# cmake is just to compile packages with "cmake" buildType, not luarocks itself
dontUseCmakeConfigure = true;
doInstallCheck = true;
versionCheckProgramArg = "--version";
propagatedBuildInputs = [
zip
unzip