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 {
pname = "languagetool-ngrams";
version = "20150817";
language = "en";
src = builtins.fetchurl {
src = fetchzip {
url = "https://languagetool.org/download/ngram-data/ngrams-${language}-${version}.zip";
sha256 = "10e548731d9f58189fc36a553f7f685703be30da0d9bb42d1f7b5bf5f8bb232c";
};
doCheck = false;
dontUnpack = true;
installPhase = ''
install -D $src $out/ngrams
chmod a+x $out/ngrams
runHook preInstall
mv -- * $out/
runHook postInstall
'';
meta = with lib; {