luaPackages.luarocks_bootstrap: update pname

with "_boostrap" in it
also replace -> replace-fail to avoid warning
This commit is contained in:
Matthieu C.
2024-06-13 15:33:10 +02:00
committed by Matthieu Coudron
parent 2a899d25c0
commit e475bdd5a2
@@ -24,7 +24,7 @@ with two "luarocks" derivations.
}:
stdenv.mkDerivation (finalAttrs: {
pname = "luarocks";
pname = "luarocks_bootstrap";
version = "3.11.1";
src = fetchFromGitHub {
@@ -66,7 +66,7 @@ stdenv.mkDerivation (finalAttrs: {
postInstall = ''
sed -e "1s@.*@#! ${lua}/bin/lua$LUA_SUFFIX@" -i "$out"/bin/*
substituteInPlace $out/etc/luarocks/* \
--replace '${lua.luaOnBuild}' '${lua}'
--replace-fail '${lua.luaOnBuild}' '${lua}'
''
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd luarocks \