3
0
Fork 0
forked from mirrors/nixpkgs

sumneko-lua-language-server: set logpath and metapath to $XDG_CACHE_HOME if set

This commit is contained in:
Wesley Jr 2022-10-23 14:27:28 -03:00
parent 0adce209ff
commit 17c250135f
No known key found for this signature in database
GPG key ID: E1B1B55B447E5D58

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
'';