ltex-ls-plus: init at 18.3.0
Co-authored-by: Pablo Ovelleiro Corral <github@pablo.tools>
This commit is contained in:
co-authored by
Pablo Ovelleiro Corral
parent
83250cf417
commit
231bf6e2d0
@@ -0,0 +1,45 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
makeBinaryWrapper,
|
||||
jre_headless,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "ltex-ls-plus";
|
||||
version = "18.3.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ltex-plus/ltex-ls-plus/releases/download/${version}/ltex-ls-plus-${version}.tar.gz";
|
||||
sha256 = "sha256-TV8z8nYz2lFsL86yxpIWDh3hDEZn/7P0kax498oicls=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeBinaryWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out
|
||||
cp -rfv bin/ lib/ $out
|
||||
rm -fv $out/bin/.lsp-cli.json $out/bin/*.bat
|
||||
for file in $out/bin/{ltex-ls-plus,ltex-cli-plus}; do
|
||||
wrapProgram $file --set JAVA_HOME "${jre_headless}"
|
||||
done
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta =
|
||||
let
|
||||
inherit (lib) licenses maintainers;
|
||||
in
|
||||
{
|
||||
homepage = "https://ltex-plus.github.io/ltex-plus/";
|
||||
description = "LSP language server for LanguageTool";
|
||||
license = licenses.mpl20;
|
||||
mainProgram = "ltex-cli-plus";
|
||||
maintainers = [ maintainers.FirelightFlagboy ];
|
||||
platforms = jre_headless.meta.platforms;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user