mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 01:03:25 +00:00
f824fc8bf0
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
36 lines
1011 B
Nix
36 lines
1011 B
Nix
{ stdenv, fetchzip, jre, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "LanguageTool-${version}";
|
|
version = "4.6";
|
|
|
|
src = fetchzip {
|
|
url = "https://www.languagetool.org/download/${name}.zip";
|
|
sha256 = "1z3i6kz1dz7dw2ykyk1yamrv8h5h330sfyl037hhyy9hw6p30rhg";
|
|
};
|
|
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";
|
|
};
|
|
}
|