Merge pull request #199960 from wesleyjrz/fix/sumneko-lua-language-server

sumneko-lua-language-server: set logpath and metapath to `$XDG_CACHE_HOME` if set
This commit is contained in:
figsoda 2022-11-07 18:07:55 -05:00 committed by GitHub
commit 46d7d19c1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,8 +66,8 @@ stdenv.mkDerivation rec {
makeWrapper "$out"/share/lua-language-server/bin/lua-language-server \
$out/bin/lua-language-server \
--add-flags "-E $out/share/lua-language-server/main.lua \
--logpath='\$XDG_CACHE_HOME/sumneko_lua/log' \
--metapath='\$XDG_CACHE_HOME/sumneko_lua/meta'"
--logpath=\''${XDG_CACHE_HOME:-\$HOME/.cache}/sumneko_lua/log \
--metapath=\''${XDG_CACHE_HOME:-\$HOME/.cache}/sumneko_lua/meta"
runHook postInstall
'';