Skip to content

Commit

Permalink
hunspell-dicts: add support for Danish dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisDK1 authored and rycee committed Jul 29, 2020
1 parent 5ad1cda commit f609fa6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Expand Up @@ -4745,6 +4745,12 @@
githubId = 1202012;
name = "Ignat Loskutov";
};
louisdk1 = {
email = "louis@louis.dk";
github = "louisdk1";
githubId = 4969294;
name = "Louis Tim Larsen";
};
lovek323 = {
email = "jason@oconal.id.au";
github = "lovek323";
Expand Down
29 changes: 29 additions & 0 deletions pkgs/development/libraries/hunspell/dictionaries.nix
Expand Up @@ -754,4 +754,33 @@ in rec {
readmeFile = "README_sk.txt";
license = with stdenv.lib.licenses; [ gpl2 lgpl21 mpl11 ];
};

/* DANISH */

da_DK = da-dk;
da-dk = mkDict rec {
name = "hunspell-dict-da-dk-${version}";
version = "2.5.137";

src = fetchurl {
url = "https://stavekontrolden.dk/dictionaries/da_DK/da_DK-${version}.oxt";
sha256 = "16y0smkg1mq0133r1fbw5ak6s2xw39281knk5ivhanakayq789qx";
};

shortName = "da-dk";
shortDescription = "Danish (Danmark)";
dictFileName = "da_DK";
readmeFile = "README_da_DK.txt";
nativeBuildInputs = [ unzip ];
unpackCmd = ''
unzip $src ${dictFileName}.dic ${dictFileName}.aff ${readmeFile} -d ${dictFileName}
'';

meta = with stdenv.lib; {
description = "Hunspell dictionary for Danish (Denmark) from Stavekontrolden";
homepage = "https://github.com/jeppebundsgaard/stavekontrolden";
license = with stdenv.lib.licenses; [ gpl2Only lgpl21Only mpl11 ];
maintainers = with maintainers; [ louisdk1 ];
};
};
}

0 comments on commit f609fa6

Please sign in to comment.