luaPackages.luarocks_bootstrap: Fix build (#337752)

This commit is contained in:
7c6f434c
2024-08-30 17:24:15 +00:00
committed by GitHub
@@ -66,7 +66,7 @@ stdenv.mkDerivation (finalAttrs: {
postInstall = ''
sed -e "1s@.*@#! ${lua}/bin/lua$LUA_SUFFIX@" -i "$out"/bin/*
substituteInPlace $out/etc/luarocks/* \
--replace-fail '${lua.luaOnBuild}' '${lua}'
--replace-quiet '${lua.luaOnBuild}' '${lua}'
''
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd luarocks \