Merge pull request #176664 from marsam/init-ltex-ls

ltex-ls: init at 15.2.0
This commit is contained in:
Mario Rodas 2022-06-07 19:04:03 -05:00 committed by GitHub
commit 02ab2e2aa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,34 @@
{ lib, stdenv, fetchurl, makeBinaryWrapper, jre_headless }:
stdenv.mkDerivation rec {
pname = "ltex-ls";
version = "15.2.0";
src = fetchurl {
url = "https://github.com/valentjn/ltex-ls/releases/download/${version}/ltex-ls-${version}.tar.gz";
sha256 = "sha256-ygjCFjYaP9Lc5BLuOHe5+lyaKpfDhicR783skkBgo7I=";
};
nativeBuildInputs = [ makeBinaryWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out
cp -rfv bin/ lib/ $out
rm -fv $out/bin/*.bat
for file in $out/bin/{ltex-ls,ltex-cli}; do
wrapProgram $file --set JAVA_HOME "${jre_headless}"
done
runHook postInstall
'';
meta = with lib; {
homepage = "https://valentjn.github.io/ltex/";
description = "LSP language server for LanguageTool";
license = licenses.mpl20;
maintainers = [ maintainers.marsam ];
platforms = jre_headless.meta.platforms;
};
}

View File

@ -27895,6 +27895,8 @@ with pkgs;
lsp-plugins = callPackage ../applications/audio/lsp-plugins { php = php74; }; lsp-plugins = callPackage ../applications/audio/lsp-plugins { php = php74; };
ltex-ls = callPackage ../tools/text/ltex-ls { };
luminanceHDR = libsForQt5.callPackage ../applications/graphics/luminance-hdr { }; luminanceHDR = libsForQt5.callPackage ../applications/graphics/luminance-hdr { };
lxdvdrip = callPackage ../applications/video/lxdvdrip { }; lxdvdrip = callPackage ../applications/video/lxdvdrip { };