-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ltex-ls-plus: init at 18.2.0 (#357814)
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |