Skip to content

Commit

Permalink
ltex-ls-plus: init at 18.2.0 (#357814)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lassulus authored Dec 9, 2024
2 parents c2a355e + 231bf6e commit 878ced9
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
11 changes: 11 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7335,6 +7335,17 @@
githubId = 1633361;
name = "Iztok Fister Jr.";
};
FirelightFlagboy = {
email = "[email protected]";
github = "FirelightFlagboy";
githubId = 30697622;
name = "Firelight Flagboy";
keys = [
{
fingerprint = "D6E2 4BD5 680C 609D D146 99B4 4304 CE0B A5E8 67D1";
}
];
};
FireyFly = {
email = "[email protected]";
github = "FireyFly";
Expand Down
45 changes: 45 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,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;
};
}

0 comments on commit 878ced9

Please sign in to comment.