summary refs log tree commit diff
path: root/pkgs/development/libraries/hunspell
diff options
context:
space:
mode:
authorVladyslav M <dywedir@gra.red>2019-04-06 16:05:28 +0300
committerVladyslav M <dywedir@gra.red>2019-04-06 17:09:12 +0300
commit7ea8027446cf858e941e3277200f3254ab8863ad (patch)
treee1900d03b0e5b440a6833d08598db432dba28424 /pkgs/development/libraries/hunspell
parent66cfe5802e9eff9aaa952bca5ea4e1f392ca83ec (diff)
downloadnixpkgs-7ea8027446cf858e941e3277200f3254ab8863ad.tar
nixpkgs-7ea8027446cf858e941e3277200f3254ab8863ad.tar.gz
nixpkgs-7ea8027446cf858e941e3277200f3254ab8863ad.tar.bz2
nixpkgs-7ea8027446cf858e941e3277200f3254ab8863ad.tar.lz
nixpkgs-7ea8027446cf858e941e3277200f3254ab8863ad.tar.xz
nixpkgs-7ea8027446cf858e941e3277200f3254ab8863ad.tar.zst
nixpkgs-7ea8027446cf858e941e3277200f3254ab8863ad.zip
hunspellDicts.uk-ua: init at 4.2.5
Diffstat (limited to 'pkgs/development/libraries/hunspell')
-rw-r--r--pkgs/development/libraries/hunspell/dictionaries.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/libraries/hunspell/dictionaries.nix b/pkgs/development/libraries/hunspell/dictionaries.nix
index aeb4253826b..08ef667b24e 100644
--- a/pkgs/development/libraries/hunspell/dictionaries.nix
+++ b/pkgs/development/libraries/hunspell/dictionaries.nix
@@ -582,4 +582,32 @@ in {
     shortDescription = "German (Switzerland)";
     dictFileName = "de_CH";
   };
+
+  /* UKRAINIAN */
+
+  uk-ua = mkDict rec {
+    name = "hunspell-dict-uk-ua-${version}";
+    version = "4.2.5";
+    _version = "4-2.5";
+
+    src = fetchurl {
+      url = "https://extensions.libreoffice.org/extensions/ukrainian-spelling-dictionary-and-thesaurus/${_version}/@@download/file/dict-uk_UA-${version}.oxt";
+      sha256 = "1s2i9cd569g97kafrswczvwmvg7m9aks8qsbxd1mi73zy2y1r7n4";
+    };
+
+    dictFileName = "uk_UA";
+    readmeFile = "README_uk_UA.txt";
+    nativeBuildInputs = [ unzip ];
+    unpackCmd = ''
+      unzip $src ${dictFileName}/{${dictFileName}.dic,${dictFileName}.aff,${readmeFile}}
+    '';
+
+    meta = with stdenv.lib; {
+      description = "Hunspell dictionary for Ukrainian (Ukraine) from LibreOffice";
+      homepage = https://extensions.libreoffice.org/extensions/ukrainian-spelling-dictionary-and-thesaurus/;
+      license = licenses.mpl20;
+      maintainers = with maintainers; [ dywedir ];
+      platforms = platforms.all;
+    };
+  };
 }