From 0c8ccd6b96b5c755f63a50822e5fd44f35b9ff4d Mon Sep 17 00:00:00 2001 From: Artturin Date: Tue, 27 Aug 2024 20:43:16 +0300 Subject: [PATCH] luaPackages.luarocks_bootstrap: Fix build I don't know what conditions are necessary to have the files in `/etc/luarocks` populated so using `replace-quiet`. At least on cross there is a file which contains configuration. --- pkgs/development/tools/misc/luarocks/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/luarocks/default.nix b/pkgs/development/tools/misc/luarocks/default.nix index 996bfeacb2d1..b15924b34f3c 100644 --- a/pkgs/development/tools/misc/luarocks/default.nix +++ b/pkgs/development/tools/misc/luarocks/default.nix @@ -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 \