1 { lib, stdenv, fetchzip, jre, makeWrapper, nixosTests }:
3 stdenv.mkDerivation rec {
4 pname = "LanguageTool";
8 url = "https://www.languagetool.org/download/${pname}-${version}.zip";
9 sha256 = "sha256-+ZZF/k3eTKT2KbWsk5jJtsdcbkOH90ytlSEEdJ2EMbU=";
11 nativeBuildInputs = [ makeWrapper ];
12 buildInputs = [ jre ];
20 for lt in languagetool{,-commandline,-server};do
21 makeWrapper ${jre}/bin/java $out/bin/$lt \
22 --add-flags "-cp $out/share/ -jar $out/share/$lt.jar"
25 makeWrapper ${jre}/bin/java $out/bin/languagetool-http-server \
26 --add-flags "-cp $out/share/languagetool-server.jar org.languagetool.server.HTTPServer"
31 passthru.tests.languagetool = nixosTests.languagetool;
34 homepage = "https://languagetool.org";
35 sourceProvenance = with sourceTypes; [ binaryBytecode ];
36 license = licenses.lgpl21Plus;
37 maintainers = with maintainers; [ edwtjo ];
38 platforms = jre.meta.platforms;
39 description = "Proofreading program for English, French German, Polish, and more";