* Emacs expects an alias called "nederlands" (not "dutch"), so provide
it. svn path=/nixpkgs/trunk/; revision=10676
This commit is contained in:
parent
3925367ca2
commit
a65d6f9f59
|
@ -5,7 +5,7 @@ let
|
||||||
/* Function to compile an Aspell dictionary. Fortunately, they all
|
/* Function to compile an Aspell dictionary. Fortunately, they all
|
||||||
build in the exact same way. */
|
build in the exact same way. */
|
||||||
buildDict =
|
buildDict =
|
||||||
{shortName, fullName, src}:
|
{shortName, fullName, src, postInstall ? ""}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "aspell-dict-${shortName}";
|
name = "aspell-dict-${shortName}";
|
||||||
|
@ -18,6 +18,8 @@ let
|
||||||
|
|
||||||
preBuild = "makeFlagsArray=(dictdir=$out/lib/aspell datadir=$out/lib/aspell)";
|
preBuild = "makeFlagsArray=(dictdir=$out/lib/aspell datadir=$out/lib/aspell)";
|
||||||
|
|
||||||
|
inherit postInstall;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Aspell dictionary for ${fullName}";
|
description = "Aspell dictionary for ${fullName}";
|
||||||
};
|
};
|
||||||
|
@ -77,6 +79,10 @@ in {
|
||||||
url = mirror://gnu/aspell/dict/nl/aspell-nl-0.50-2.tar.bz2;
|
url = mirror://gnu/aspell/dict/nl/aspell-nl-0.50-2.tar.bz2;
|
||||||
sha256 = "0ffb87yjsh211hllpc4b9khqqrblial4pzi1h9r3v465z1yhn3j4";
|
sha256 = "0ffb87yjsh211hllpc4b9khqqrblial4pzi1h9r3v465z1yhn3j4";
|
||||||
};
|
};
|
||||||
|
# Emacs expects a language called "nederlands".
|
||||||
|
postInstall = ''
|
||||||
|
echo "add nl.rws" > $out/lib/aspell/nederlands.multi
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
ru = buildDict {
|
ru = buildDict {
|
||||||
|
|
Loading…
Reference in New Issue