6a71e65151
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/LanguageTool/versions. These checks were done: - built on NixOS - ran `/nix/store/nfv5l06pzfk7xicqzawx5syh6mwg9csk-LanguageTool-4.1/bin/languagetool -h` got 0 exit code - ran `/nix/store/nfv5l06pzfk7xicqzawx5syh6mwg9csk-LanguageTool-4.1/bin/languagetool --help` got 0 exit code - ran `/nix/store/nfv5l06pzfk7xicqzawx5syh6mwg9csk-LanguageTool-4.1/bin/languagetool-commandline --version` and found version 4.1 - found 4.1 with grep in /nix/store/nfv5l06pzfk7xicqzawx5syh6mwg9csk-LanguageTool-4.1 - directory tree listing: https://gist.github.com/2125d88e98c5831d6acc52597d8d69e5
36 lines
1 KiB
Nix
36 lines
1 KiB
Nix
{ stdenv, fetchzip, jre, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "LanguageTool-${version}";
|
|
version = "4.1";
|
|
|
|
src = fetchzip {
|
|
url = "https://www.languagetool.org/download/${name}.zip";
|
|
sha256 = "0qc4z5rl9239lqfi2jrggzmjkx4f33n0arlqm5xgfaqgi8wypz0l";
|
|
};
|
|
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";
|
|
};
|
|
}
|