Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
46 lines
1 KiB
Nix
46 lines
1 KiB
Nix
{
|
|||
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;
|
|||
};
|
|||
}
|