From 60a907b76a50c85aae6cbcf51aea8b8bd2c060dd Mon Sep 17 00:00:00 2001 From: Andrew Voynov Date: Tue, 1 Apr 2025 13:40:32 +0300 Subject: [PATCH] hyphen: add Russian dictionary, update readmeFileName values For some reason README file for Russian has different naming upstream, therefore `readmeFileName` for all languages was changed to accommodate both naming schemes. --- .../libraries/hyphen/dictionaries.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/hyphen/dictionaries.nix b/pkgs/development/libraries/hyphen/dictionaries.nix index 01303652017a..34fe0729643f 100644 --- a/pkgs/development/libraries/hyphen/dictionaries.nix +++ b/pkgs/development/libraries/hyphen/dictionaries.nix @@ -44,7 +44,7 @@ let install -m644 "hyph_${dictFileName}.dic" "$out/share/hyphen" # docs install -dm755 "$out/share/doc/" - install -m644 "README_hyph_${readmeFileName}.txt" "$out/share/doc/${pname}.txt" + install -m644 "README_${readmeFileName}.txt" "$out/share/doc/${pname}.txt" runHook postInstall ''; }; @@ -84,7 +84,7 @@ rec { shortName = "de-de"; shortDescription = "German (Germany)"; dictFileName = "de_DE"; - readmeFileName = "de"; + readmeFileName = "hyph_de"; }; de_AT = de-at; @@ -93,7 +93,7 @@ rec { shortName = "de-at"; shortDescription = "German (Austria)"; dictFileName = "de_AT"; - readmeFileName = "de"; + readmeFileName = "hyph_de"; }; de_CH = de-ch; @@ -102,6 +102,17 @@ rec { shortName = "de-ch"; shortDescription = "German (Switzerland)"; dictFileName = "de_CH"; - readmeFileName = "de"; + readmeFileName = "hyph_de"; + }; + + # RUSSIAN + + ru_RU = ru-ru; + ru-ru = mkDictFromLibreofficeGit { + subdir = "ru_RU"; + shortName = "ru-ru"; + shortDescription = "Russian (Russia)"; + dictFileName = "ru_RU"; + readmeFileName = "ru_RU"; }; }