3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #55412 from vlaci/pkg/hunspell-hu

hunspell-dicts: add support for Hungarian dictionary
This commit is contained in:
Jörg Thalheim 2019-02-08 10:07:32 +00:00 committed by GitHub
commit 0710c9fc25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -250,6 +250,35 @@ let
}; };
}; };
mkDictFromLibreOffice =
{ shortName
, shortDescription
, dictFileName
, license
, readmeFile ? "README_${dictFileName}.txt"
, sourceRoot ? dictFileName }:
mkDict rec {
name = "hunspell-dict-${shortName}-libreoffice-${version}";
version = "6.2.0.3";
inherit dictFileName readmeFile;
src = fetchFromGitHub {
owner = "LibreOffice";
repo = "dictionaries";
rev = "libreoffice-${version}";
sha256 = "0rw9ahhynia5wsgyd67lrhinqqn1s1rizgiykb3palbyk0lv72xj";
};
buildPhase = ''
cp -a ${sourceRoot}/* .
'';
meta = with stdenv.lib; {
homepage = https://wiki.documentfoundation.org/Development/Dictionaries;
description = "Hunspell dictionary for ${shortDescription} from LibreOffice";
license = license;
maintainers = with maintainers; [ vlaci ];
platforms = platforms.all;
};
};
in { in {
/* ENGLISH */ /* ENGLISH */
@ -510,6 +539,15 @@ in {
]; ];
}; };
/* HUNGARIAN */
hu-hu = mkDictFromLibreOffice {
shortName = "hu-hu";
dictFileName = "hu_HU";
shortDescription = "Hungarian (Hungary)";
license = with stdenv.lib.licenses; [ mpl20 lgpl3 ];
};
/* SWEDISH */ /* SWEDISH */
sv-se = mkDictFromDSSO rec { sv-se = mkDictFromDSSO rec {