diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index e4ce300f7cdad..cabc41024c980 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -7242,6 +7242,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"; diff --git a/pkgs/by-name/lt/ltex-ls-plus/package.nix b/pkgs/by-name/lt/ltex-ls-plus/package.nix new file mode 100644 index 0000000000000..e48bd3d4b136f --- /dev/null +++ b/pkgs/by-name/lt/ltex-ls-plus/package.nix @@ -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; + }; +}