sumneko-lua-language-server: 2.4.1 -> 2.4.2

This commit is contained in:
Michael Adler 2021-10-11 08:17:51 +02:00 committed by Michael Adler
parent 80d606efb7
commit 2e8e1cbdb8

View file

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "sumneko-lua-language-server"; pname = "sumneko-lua-language-server";
version = "2.4.1"; version = "2.4.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sumneko"; owner = "sumneko";
repo = "lua-language-server"; repo = "lua-language-server";
rev = version; rev = version;
sha256 = "sha256-RhjH/phRVlNO9nPL+TtcrZYpwqNygpXjI/Pdyrxxv/4="; sha256 = "sha256-PYlHjKMnqnhAJAvmHbH6Bb+qOyNzDH+ewOkXkj2u4CU=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
@ -33,13 +33,14 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out/bin $out/extras install -Dt "$out"/share/lua-language-server/bin/Linux bin/Linux/lua-language-server
cp -r ./{locale,meta,script,*.lua} $out/extras/ install -m644 -t "$out"/share/lua-language-server/bin/Linux bin/Linux/*.*
cp ./bin/Linux/{bee.so,lpeglabel.so} $out/extras install -m644 -t "$out"/share/lua-language-server {debugger,main}.lua
cp ./bin/Linux/lua-language-server $out/extras/.lua-language-server-unwrapped cp -r locale meta script "$out"/share/lua-language-server
makeWrapper $out/extras/.lua-language-server-unwrapped \
makeWrapper "$out"/share/lua-language-server/bin/Linux/lua-language-server \
$out/bin/lua-language-server \ $out/bin/lua-language-server \
--add-flags "-E $out/extras/main.lua \ --add-flags "-E $out/share/lua-language-server/main.lua \
--logpath='~/.cache/sumneko_lua/log' \ --logpath='~/.cache/sumneko_lua/log' \
--metapath='~/.cache/sumneko_lua/meta'" --metapath='~/.cache/sumneko_lua/meta'"