Skip to content

Commit

Permalink
ltex-ls-plus: init at 17.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippWoelfel committed Sep 18, 2024
1 parent 3a33f50 commit 69a3acc
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 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,39 @@
{
lib,
stdenvNoCC,
fetchurl,
makeBinaryWrapper,
jre_headless,
}:

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

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

nativeBuildInputs = [ makeBinaryWrapper ];

installPhase = ''
runHook preInstall
mkdir -p $out
cp -rfv bin/ lib/ $out
rm -fv $out/bin/.lsp-cli.json $out/bin/*.bat
wrapProgram $out/bin/ltex-ls-plus --set JAVA_HOME "${jre_headless}"
wrapProgram $out/bin/ltex-cli-plus --set JAVA_HOME "${jre_headless}"
runHook postInstall
'';

meta = with lib; {
homepage = "https://ltex-plus.github.io/ltex-plus/";
description = "Grammar/Spell Checker Using LanguageTool with Support for LaTeX, Markdown, and Others";
license = licenses.mpl20;
maintainers = with maintainers; [ pwoelfel ];
platforms = jre_headless.meta.platforms;
};
}

0 comments on commit 69a3acc

Please sign in to comment.