nixpkgs/pkgs/tools/text/languagetool/default.nix
R. RyanTM 59d8329e33 languagetool: 4.1 -> 4.2
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
- /nix/store/hb9w134446nvgv5cahyy0a4rviy1k476-LanguageTool-4.2/bin/languagetool passed the binary check.
- /nix/store/hb9w134446nvgv5cahyy0a4rviy1k476-LanguageTool-4.2/bin/languagetool-commandline passed the binary check.
- Warning: no invocation of /nix/store/hb9w134446nvgv5cahyy0a4rviy1k476-LanguageTool-4.2/bin/languagetool-server had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/hb9w134446nvgv5cahyy0a4rviy1k476-LanguageTool-4.2/bin/languagetool-http-server had a zero exit code or showed the expected version
- 2 of 4 passed binary check by having a zero exit code.
- 0 of 4 passed binary check by having the new version present in output.
- found 4.2 with grep in /nix/store/hb9w134446nvgv5cahyy0a4rviy1k476-LanguageTool-4.2
- directory tree listing: https://gist.github.com/00ec5ff03beb669055da48487c71c94f
- du listing: https://gist.github.com/84c445db9956dee9c0415b091335cd53
2018-06-27 18:46:51 -07:00

37 lines
1 KiB
Nix

{ stdenv, fetchzip, jre, makeWrapper }:
stdenv.mkDerivation rec {
name = "LanguageTool-${version}";
version = "4.2";
src = fetchzip {
url = "https://www.languagetool.org/download/${name}.zip";
sha256 = "01iy3cq6rwkm8sflj2nwp4ib29hyykd23hfsnrmqxji9csj8pf71";
};
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";
};
}