3
0
Fork 0
forked from mirrors/nixpkgs

languagetool: init at 3.5

This commit is contained in:
Edward Tjörnhammar 2016-10-05 15:05:27 +02:00
parent fad5794c77
commit e4bdbfc247
No known key found for this signature in database
GPG key ID: 7B82CE4A866B6845
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ stdenv, lib, fetchurl, unzip, jdk }:
stdenv.mkDerivation rec {
pname = "LanguageTool";
version = "3.5";
name = pname + "-" + version;
src = fetchurl {
url = "https://www.languagetool.org/download/${name}.zip";
sha256 = "1axw8fqg2wlkmv45s71q5pg44sg1s06szpkjhyscy704i7d2jc34";
};
buildInputs = [ unzip jdk ];
installPhase =
''
mkdir -p $out/{bin,share}
mv * $out/share/.
for lt in languagetool{,-commandline,-server};do
cat > $out/bin/$lt <<EXE
#!${stdenv.shell}
${jdk}/bin/java -cp $out/share/ -jar $out/share/$lt.jar $@
EXE
chmod +x $out/bin/$lt
done
'';
meta = with stdenv.lib; {
homepage = "https://languagetool.org";
license = licenses.lgpg21Plus;
maintainers = with maintainers; [ edwtjo ];
descrption = "A proofreading program for English, French German, Polish, and more";
};
}

View file

@ -869,6 +869,8 @@ in
kapacitor = callPackage ../servers/monitoring/kapacitor { };
languagetool = callPackage ../tools/text/languagetool { };
long-shebang = callPackage ../misc/long-shebang {};
mathics = pythonPackages.mathics;