From 923ea8730c50942be208626421a300aee6411396 Mon Sep 17 00:00:00 2001 From: Andy3153 Date: Mon, 20 May 2024 21:18:18 +0300 Subject: [PATCH] hunspellDicts.ro-ro: init at 3.3.10 add a Romanian dictionary for Hunspell from rospell on Sourceforge --- .../libraries/hunspell/dictionaries.nix | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/pkgs/development/libraries/hunspell/dictionaries.nix b/pkgs/development/libraries/hunspell/dictionaries.nix index 7bdc1980e6729..6b6640ddfb712 100644 --- a/pkgs/development/libraries/hunspell/dictionaries.nix +++ b/pkgs/development/libraries/hunspell/dictionaries.nix @@ -968,6 +968,35 @@ rec { }; }; + /* ROMANIAN */ + ro_RO = ro-ro; + ro-ro = mkDict rec { + pname = "hunspell-dict-ro-ro"; + version = "3.3.10"; + shortName = "ro-ro"; + dictFileName = "ro_RO"; + fileName = "${dictFileName}.${version}.zip"; + shortDescription = "Romanian (Romania)"; + readmeFile = "README"; + + src = fetchurl { + url = "https://downloads.sourceforge.net/rospell/${fileName}"; + hash = "sha256-fxKNZOoGyeZxHDCxGMCv7vsBTY8zyS2szfRVq6LQRRk="; + }; + + nativeBuildInputs = [ unzip ]; + unpackCmd = '' + unzip $src ${dictFileName}.aff ${dictFileName}.dic ${readmeFile} -d ${dictFileName} + ''; + + meta = { + description = "Hunspell dictionary for ${shortDescription} from rospell"; + homepage = "https://sourceforge.net/projects/rospell/"; + license = with lib.licenses; [ gpl2Only ]; + maintainers = with lib.maintainers; [ Andy3153 ]; + }; + }; + /* Turkish */ tr_TR = tr-tr; tr-tr = mkDict rec {