prosody: work around makeWrapper bug

This seems to have been caused by #128503, because the values to be
prefixed contain special/wildcard characters.
This commit is contained in:
arcnmx 2022-02-11 14:30:50 -08:00
parent 0c1cf5c7b4
commit 16d0b4a69f

View File

@ -72,17 +72,17 @@ stdenv.mkDerivation rec {
cp -r $communityModules/mod_${module} $out/lib/prosody/modules/
'') (lib.lists.unique(nixosModuleDeps ++ withCommunityModules ++ withOnlyInstalledCommunityModules))}
wrapProgram $out/bin/prosody \
--prefix LUA_PATH ';' "$luaEnvPath" \
--prefix LUA_CPATH ';' "$luaEnvCPath"
--set LUA_PATH "$luaEnvPath" \
--set LUA_CPATH "$luaEnvCPath"
wrapProgram $out/bin/prosodyctl \
--add-flags '--config "/etc/prosody/prosody.cfg.lua"' \
--prefix LUA_PATH ';' "$luaEnvPath" \
--prefix LUA_CPATH ';' "$luaEnvCPath"
--set LUA_PATH "$luaEnvPath" \
--set LUA_CPATH "$luaEnvCPath"
make -C tools/migration install
wrapProgram $out/bin/prosody-migrator \
--prefix LUA_PATH ';' "$luaEnvPath" \
--prefix LUA_CPATH ';' "$luaEnvCPath"
--set LUA_PATH "$luaEnvPath" \
--set LUA_CPATH "$luaEnvCPath"
'';
passthru = {