Skip to content

Commit

Permalink
ltex-ls-plus: init at 18.2.0
Browse files Browse the repository at this point in the history
This adds the `ltex-ls-plus` package, which is a language server for LanguageTool.
It is a fork of the `ltex-ls` package with additional features & bugfixes.
  • Loading branch information
FirelightFlagboy committed Nov 21, 2024
1 parent 83250cf commit 953543a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/by-name/lt/ltex-ls-plus/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ lib, stdenvNoCC, fetchurl, makeBinaryWrapper, jre_headless }:

stdenvNoCC.mkDerivation rec {
pname = "ltex-ls-plus";
version = "18.2.0";

src = fetchurl {
url = "https://github.com/ltex-plus/ltex-ls-plus/releases/download/${version}/ltex-ls-plus-${version}.tar.gz";
sha256 = "sha256-8qxeaVGd2r3SLerCgHSpQWFbXhIngV2cdv/jWN7HHOE=";
};

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

0 comments on commit 953543a

Please sign in to comment.