aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/libraries/hunspell
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/hunspell')
-rw-r--r--nixpkgs/pkgs/development/libraries/hunspell/default.nix11
-rw-r--r--nixpkgs/pkgs/development/libraries/hunspell/dictionaries.nix26
2 files changed, 33 insertions, 4 deletions
diff --git a/nixpkgs/pkgs/development/libraries/hunspell/default.nix b/nixpkgs/pkgs/development/libraries/hunspell/default.nix
index f2f8cdcab20..a9b28253171 100644
--- a/nixpkgs/pkgs/development/libraries/hunspell/default.nix
+++ b/nixpkgs/pkgs/development/libraries/hunspell/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, ncurses, readline, autoreconfHook }:
+{ stdenv, fetchurl, fetchpatch, ncurses, readline, autoreconfHook }:
stdenv.mkDerivation rec {
version = "1.7.0";
@@ -14,7 +14,14 @@ stdenv.mkDerivation rec {
buildInputs = [ ncurses readline ];
nativeBuildInputs = [ autoreconfHook ];
- patches = [ ./0001-Make-hunspell-look-in-XDG_DATA_DIRS-for-dictionaries.patch ];
+ patches = [
+ ./0001-Make-hunspell-look-in-XDG_DATA_DIRS-for-dictionaries.patch
+ (fetchpatch {
+ name = "CVE-2019-16707.patch";
+ url = "https://github.com/hunspell/hunspell/commit/ac938e2ecb48ab4dd21298126c7921689d60571b.patch";
+ sha256 = "0bwfksz87iy7ikx3fb54zd5ww169qfm9kl076hsch3cs8p30s8az";
+ })
+ ];
postPatch = ''
patchShebangs tests
diff --git a/nixpkgs/pkgs/development/libraries/hunspell/dictionaries.nix b/nixpkgs/pkgs/development/libraries/hunspell/dictionaries.nix
index fb64aa81d1a..9ec79f51443 100644
--- a/nixpkgs/pkgs/development/libraries/hunspell/dictionaries.nix
+++ b/nixpkgs/pkgs/development/libraries/hunspell/dictionaries.nix
@@ -272,13 +272,13 @@ let
, sourceRoot ? dictFileName }:
mkDict rec {
name = "hunspell-dict-${shortName}-libreoffice-${version}";
- version = "6.2.0.3";
+ version = "6.3.0.4";
inherit dictFileName readmeFile;
src = fetchFromGitHub {
owner = "LibreOffice";
repo = "dictionaries";
rev = "libreoffice-${version}";
- sha256 = "0rw9ahhynia5wsgyd67lrhinqqn1s1rizgiykb3palbyk0lv72xj";
+ sha256 = "14z4b0grn7cw8l9s7sl6cgapbpwhn1b3gwc3kn6b0k4zl3dq7y63";
};
buildPhase = ''
cp -a ${sourceRoot}/* .
@@ -732,4 +732,26 @@ in rec {
shortDescription = "Russian (Russian)";
license = with stdenv.lib.licenses; [ mpl20 lgpl3 ];
};
+
+ /* CZECH */
+
+ cs_CZ = cs-cz;
+ cs-cz = mkDictFromLibreOffice {
+ shortName = "cs-cz";
+ dictFileName = "cs_CZ";
+ shortDescription = "Czech (Czechia)";
+ readmeFile = "README_cs.txt";
+ license = with stdenv.lib.licenses; [ gpl2 ];
+ };
+
+ /* SLOVAK */
+
+ sk_SK = sk-sk;
+ sk-sk = mkDictFromLibreOffice {
+ shortName = "sk-sk";
+ dictFileName = "sk_SK";
+ shortDescription = "Slovak (Slovakia)";
+ readmeFile = "README_sk.txt";
+ license = with stdenv.lib.licenses; [ gpl2 lgpl21 mpl11 ];
+ };
}