2007-10-23 18:33:11 +02:00
|
|
|
{stdenv, fetchurl, aspell, which}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
/* Function to compile an Aspell dictionary. Fortunately, they all
|
|
|
|
build in the exact same way. */
|
|
|
|
buildDict =
|
2008-02-14 11:26:17 +01:00
|
|
|
{shortName, fullName, src, postInstall ? ""}:
|
2007-10-23 18:33:11 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "aspell-dict-${shortName}";
|
|
|
|
|
|
|
|
inherit src;
|
|
|
|
|
|
|
|
buildInputs = [aspell which];
|
|
|
|
|
|
|
|
dontAddPrefix = true;
|
|
|
|
|
|
|
|
preBuild = "makeFlagsArray=(dictdir=$out/lib/aspell datadir=$out/lib/aspell)";
|
|
|
|
|
2008-02-14 11:26:17 +01:00
|
|
|
inherit postInstall;
|
|
|
|
|
2007-10-23 18:33:11 +02:00
|
|
|
meta = {
|
|
|
|
description = "Aspell dictionary for ${fullName}";
|
2012-01-28 15:39:56 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2007-10-23 18:33:11 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in {
|
|
|
|
|
2013-08-28 11:09:31 +02:00
|
|
|
cs = buildDict {
|
|
|
|
shortName = "cs-20040614-1";
|
|
|
|
fullName = "Czech";
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://gnu/aspell/dict/cs/aspell6-cs-20040614-1.tar.bz2;
|
|
|
|
sha256 = "0rihj4hsw96pd9casvmpvw3r8040pfa28p1h73x4vyn20zwr3h01";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2007-10-23 18:33:11 +02:00
|
|
|
de = buildDict {
|
2013-07-14 21:32:33 +02:00
|
|
|
shortName = "de-20030222-1";
|
2007-10-23 18:33:11 +02:00
|
|
|
fullName = "German";
|
|
|
|
src = fetchurl {
|
2013-07-14 21:32:33 +02:00
|
|
|
url = mirror://gnu/aspell/dict/de/aspell6-de-20030222-1.tar.bz2;
|
|
|
|
sha256 = "01p92qj66cqb346gk7hjfynaap5sbcn85xz07kjfdq623ghr8v5s";
|
2007-10-23 18:33:11 +02:00
|
|
|
};
|
|
|
|
};
|
2013-07-14 21:32:47 +02:00
|
|
|
|
2007-10-23 18:33:11 +02:00
|
|
|
en = buildDict {
|
2013-07-14 00:11:27 +02:00
|
|
|
shortName = "en-7.1-0";
|
2007-10-23 18:33:11 +02:00
|
|
|
fullName = "English";
|
|
|
|
src = fetchurl {
|
2013-07-14 00:11:27 +02:00
|
|
|
url = mirror://gnu/aspell/dict/en/aspell6-en-7.1-0.tar.bz2;
|
|
|
|
sha256 = "02ldfiny4iakgfgy4sdrzjqdzi7l1rmb6y30lv31kfy5x31g77gz";
|
2007-10-23 18:33:11 +02:00
|
|
|
};
|
|
|
|
};
|
2013-07-14 21:32:47 +02:00
|
|
|
|
2007-10-23 18:33:11 +02:00
|
|
|
es = buildDict {
|
2013-07-14 00:11:27 +02:00
|
|
|
shortName = "es-1.11-2";
|
2007-10-23 18:33:11 +02:00
|
|
|
fullName = "Spanish";
|
|
|
|
src = fetchurl {
|
2013-07-14 00:11:27 +02:00
|
|
|
url = mirror://gnu/aspell/dict/es/aspell6-es-1.11-2.tar.bz2;
|
|
|
|
sha256 = "1k5g328ac1hdpp6fsg57d8md6i0aqcwlszp3gbmp5706wyhpydmd";
|
2007-10-23 18:33:11 +02:00
|
|
|
};
|
|
|
|
};
|
2013-07-14 21:32:47 +02:00
|
|
|
|
2008-02-14 14:39:03 +01:00
|
|
|
eo = buildDict {
|
2013-07-14 00:11:27 +02:00
|
|
|
shortName = "eo-2.1.20000225a-2";
|
2008-02-14 14:39:03 +01:00
|
|
|
fullName = "Esperanto";
|
|
|
|
src = fetchurl {
|
2013-07-14 00:11:27 +02:00
|
|
|
url = mirror://gnu/aspell/dict/eo/aspell6-eo-2.1.20000225a-2.tar.bz2;
|
|
|
|
sha256 = "09vf0mbiicbmyb4bwb7v7lgpabnylg0wy7m3hlhl5rjdda6x3lj1";
|
2008-02-14 14:39:03 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2007-10-23 18:33:11 +02:00
|
|
|
fr = buildDict {
|
2013-07-14 00:11:27 +02:00
|
|
|
shortName = "fr-0.50-3";
|
2007-10-23 18:33:11 +02:00
|
|
|
fullName = "French";
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://gnu/aspell/dict/fr/aspell-fr-0.50-3.tar.bz2;
|
|
|
|
sha256 = "14ffy9mn5jqqpp437kannc3559bfdrpk7r36ljkzjalxa53i0hpr";
|
|
|
|
};
|
|
|
|
};
|
2013-07-14 21:32:47 +02:00
|
|
|
|
2010-05-22 18:53:17 +02:00
|
|
|
it = buildDict {
|
2013-07-14 00:11:27 +02:00
|
|
|
shortName = "it-2.2_20050523-0";
|
2010-05-22 18:53:17 +02:00
|
|
|
fullName = "Italian";
|
|
|
|
src = fetchurl {
|
2013-07-14 00:11:27 +02:00
|
|
|
url = mirror://gnu/aspell/dict/it/aspell6-it-2.2_20050523-0.tar.bz2;
|
|
|
|
sha256 = "1gdf7bc1a0kmxsmphdqq8pl01h667mjsj6hihy6kqy14k5qdq69v";
|
2010-05-22 18:53:17 +02:00
|
|
|
};
|
|
|
|
};
|
2013-07-14 21:32:47 +02:00
|
|
|
|
2007-10-23 18:33:11 +02:00
|
|
|
la = buildDict {
|
2013-07-14 00:11:27 +02:00
|
|
|
shortName = "la-20020503-0";
|
2007-10-23 18:33:11 +02:00
|
|
|
fullName = "Latin";
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://gnu/aspell/dict/la/aspell6-la-20020503-0.tar.bz2;
|
|
|
|
sha256 = "1199inwi16dznzl087v4skn66fl7h555hi2palx6s1f3s54b11nl";
|
|
|
|
};
|
|
|
|
};
|
2013-07-14 21:32:47 +02:00
|
|
|
|
2013-09-01 15:57:28 +02:00
|
|
|
nb = buildDict {
|
|
|
|
shortName = "nb-0.50.1-0";
|
|
|
|
fullName = "Norwegian Bokmal";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/aspell/dict/nb/aspell-nb-0.50.1-0.tar.bz2";
|
|
|
|
sha256 = "12i2bmgdnlkzfinb20j2a0j4a20q91a9j8qpq5vgabbvc65nwx77";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2007-10-23 18:33:11 +02:00
|
|
|
nl = buildDict {
|
2013-07-14 00:11:27 +02:00
|
|
|
shortName = "nl-0.50-2";
|
2007-10-23 18:33:11 +02:00
|
|
|
fullName = "Dutch";
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://gnu/aspell/dict/nl/aspell-nl-0.50-2.tar.bz2;
|
|
|
|
sha256 = "0ffb87yjsh211hllpc4b9khqqrblial4pzi1h9r3v465z1yhn3j4";
|
|
|
|
};
|
2008-02-14 11:26:17 +01:00
|
|
|
# Emacs expects a language called "nederlands".
|
|
|
|
postInstall = ''
|
|
|
|
echo "add nl.rws" > $out/lib/aspell/nederlands.multi
|
|
|
|
'';
|
2007-10-23 18:33:11 +02:00
|
|
|
};
|
2013-07-14 21:32:47 +02:00
|
|
|
|
2013-09-01 15:57:28 +02:00
|
|
|
nn = buildDict {
|
|
|
|
shortName = "nn-0.50.1-0";
|
|
|
|
fullName = "Norwegian Nynorsk";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/aspell/dict/nn/aspell-nn-0.50.1-1.tar.bz2";
|
|
|
|
sha256 = "0w2k5l5rbqpliripgqwiqixz5ghnjf7i9ggbrc4ly4vy1ia10rmc";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2011-08-29 23:45:42 +02:00
|
|
|
pl = buildDict {
|
2013-07-14 00:11:27 +02:00
|
|
|
shortName = "pl-6.0_20061121-0";
|
2011-08-29 23:45:42 +02:00
|
|
|
fullName = "Polish";
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://gnu/aspell/dict/pl/aspell6-pl-6.0_20061121-0.tar.bz2;
|
|
|
|
sha256 = "0kap4kh6bqbb22ypja1m5z3krc06vv4n0hakiiqmv20anzy42xq1";
|
|
|
|
};
|
|
|
|
};
|
2013-07-14 21:32:47 +02:00
|
|
|
|
2007-10-23 18:33:11 +02:00
|
|
|
ru = buildDict {
|
2013-07-14 00:11:27 +02:00
|
|
|
shortName = "ru-0.99f7-1";
|
2007-10-23 18:33:11 +02:00
|
|
|
fullName = "Russian";
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://gnu/aspell/dict/ru/aspell6-ru-0.99f7-1.tar.bz2;
|
|
|
|
sha256 = "0ip6nq43hcr7vvzbv4lwwmlwgfa60hrhsldh9xy3zg2prv6bcaaw";
|
|
|
|
};
|
|
|
|
};
|
2013-07-14 21:32:47 +02:00
|
|
|
|
2013-09-01 14:58:07 +02:00
|
|
|
sv = buildDict {
|
|
|
|
shortName = "sv-0.51-0";
|
|
|
|
fullName = "Swedish";
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://gnu/aspell/dict/sv/aspell-sv-0.51-0.tar.bz2;
|
|
|
|
sha256 = "02jwkjhr32kvyibnyzgx3smbnm576jwdzg3avdf6zxwckhy5fw4v";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2007-10-23 18:33:11 +02:00
|
|
|
}
|