1
0
Fork 0

Services: Fix LanguageTool ngrams package (hopefully)

This commit is contained in:
Aires 2024-07-28 18:46:08 -04:00
parent 0b0f3548b5
commit 0e3762a68f

View file

@ -1,22 +1,27 @@
{ pkgs, lib }: {
pkgs,
lib,
fetchzip,
}:
pkgs.stdenv.mkDerivation rec { pkgs.stdenv.mkDerivation rec {
pname = "languagetool-ngrams"; pname = "languagetool-ngrams";
version = "20150817"; version = "20150817";
language = "en"; language = "en";
src = builtins.fetchurl { src = fetchzip {
url = "https://languagetool.org/download/ngram-data/ngrams-${language}-${version}.zip"; url = "https://languagetool.org/download/ngram-data/ngrams-${language}-${version}.zip";
sha256 = "10e548731d9f58189fc36a553f7f685703be30da0d9bb42d1f7b5bf5f8bb232c"; sha256 = "10e548731d9f58189fc36a553f7f685703be30da0d9bb42d1f7b5bf5f8bb232c";
}; };
doCheck = false; doCheck = false;
dontUnpack = true;
installPhase = '' installPhase = ''
install -D $src $out/ngrams runHook preInstall
chmod a+x $out/ngrams
mv -- * $out/
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {