84f3c068df
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done: - built on NixOS - ran `/nix/store/q7ycrljxhd7pbkgvbhsh8fz4496x798n-LanguageTool-4.0/bin/languagetool-commandline --version` and found version 4.0 - found 4.0 with grep in /nix/store/q7ycrljxhd7pbkgvbhsh8fz4496x798n-LanguageTool-4.0
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ stdenv, fetchzip, jre, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "LanguageTool-${version}";
|
|
version = "4.0";
|
|
|
|
src = fetchzip {
|
|
url = "https://www.languagetool.org/download/${name}.zip";
|
|
sha256 = "0nfqn04fb5kvxvpsc6xbgj03rmqcsn8vy2xj0zazijhvbxaf0zfb";
|
|
};
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ jre ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share
|
|
mv * $out/share/
|
|
|
|
for lt in languagetool{,-commandline,-server};do
|
|
makeWrapper ${jre}/bin/java $out/bin/$lt \
|
|
--add-flags "-cp $out/share/ -jar $out/share/$lt.jar"
|
|
done
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/languagetool-http-server \
|
|
--add-flags "-cp $out/share/languagetool-server.jar org.languagetool.server.HTTPServer"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://languagetool.org;
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [
|
|
edwtjo
|
|
jgeerds
|
|
];
|
|
description = "A proofreading program for English, French German, Polish, and more";
|
|
};
|
|
}
|