1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00

ltex-ls-plus: init at 18.2.0 (#357814)

This commit is contained in:
lassulus 2024-12-09 17:17:38 +01:00 committed by GitHub
commit 878ced9a7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 56 additions and 0 deletions

View file

@ -7335,6 +7335,17 @@
githubId = 1633361;
name = "Iztok Fister Jr.";
};
FirelightFlagboy = {
email = "firelight.flagboy+nixpkgs@gmail.com";
github = "FirelightFlagboy";
githubId = 30697622;
name = "Firelight Flagboy";
keys = [
{
fingerprint = "D6E2 4BD5 680C 609D D146 99B4 4304 CE0B A5E8 67D1";
}
];
};
FireyFly = {
email = "nix@firefly.nu";
github = "FireyFly";

View file

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