nixpkgs/pkgs/tools/text/languagetool/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

35 lines
895 B
Nix

{ stdenv, lib, fetchurl, unzip, jdk }:
stdenv.mkDerivation rec {
pname = "LanguageTool";
version = "3.7";
name = pname + "-" + version;
src = fetchurl {
url = "https://www.languagetool.org/download/${name}.zip";
sha256 = "04i49z022k3nyyr8hnlxima9k5id8qvh2nr3dv8zgcqm5sin6xx9";
};
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.lgpl21Plus;
maintainers = with maintainers; [
edwtjo
jgeerds
];
descrption = "A proofreading program for English, French German, Polish, and more";
};
}