nixpkgs-suyu/pkgs/tools/text/languagetool/default.nix
Jascha Geerds ffedc3e4a9 misc: Remove myself from list of maintainers
Unfortunately I don't have the time anymore to maintain those
packages.
2019-03-12 23:50:52 +01:00

35 lines
1,011 B
Nix

{ stdenv, fetchzip, jre, makeWrapper }:
stdenv.mkDerivation rec {
name = "LanguageTool-${version}";
version = "4.4";
src = fetchzip {
url = "https://www.languagetool.org/download/${name}.zip";
sha256 = "0cdrh59jcwrj5zp2lhbi9wp29pzabp35i8f7lbrs6z1wib6mgmp1";
};
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
];
description = "A proofreading program for English, French German, Polish, and more";
};
}