diff options
author | Martin Bravenboer <martin.bravenboer@logicblox.com> | 2007-07-04 01:35:29 +0000 |
---|---|---|
committer | Martin Bravenboer <martin.bravenboer@logicblox.com> | 2007-07-04 01:35:29 +0000 |
commit | 5983f9183659142a9f59d47cf889e877318b495f (patch) | |
tree | 6be73fb74d80de1d8a3d7d3ab9971039c55e1cfb /pkgs/development/libraries/aspell | |
parent | 9c542effbefac3bc08edb532042ab0afee2aeadd (diff) |
A pkgs/development/libraries/aspell/builder.sh
M pkgs/development/libraries/aspell/default.nix
aspell comes without any dictionaries, so if you actually want to use
it you need to install additional dictionary packages. I've added the
package for English, but obviously more should be added. Dictionaries
are installed in the prefix of aspell.
M pkgs/top-level/all-packages.nix
aspell dict package for English needs which
added an option enableMPlayer to wrapFirefox to disable the MPlayer
plugin. It's enabled by default.
svn path=/nixpkgs/trunk/; revision=8944
Diffstat (limited to 'pkgs/development/libraries/aspell')
-rw-r--r-- | pkgs/development/libraries/aspell/builder.sh | 16 | ||||
-rw-r--r-- | pkgs/development/libraries/aspell/default.nix | 12 |
2 files changed, 26 insertions, 2 deletions
diff --git a/pkgs/development/libraries/aspell/builder.sh b/pkgs/development/libraries/aspell/builder.sh new file mode 100644 index 000000000000..af1c5406675e --- /dev/null +++ b/pkgs/development/libraries/aspell/builder.sh @@ -0,0 +1,16 @@ +source $stdenv/setup +genericBuild + +# dictionaries search for aspell and prezip-bin +export PATH=$out/bin:$PATH +mkdir dict-tmp +cd dict-tmp +for d in $dictionaries; do + tar jxvf $d + cd aspell6-* + ./configure + make + make install + rm -rf aspell6-* + cd .. +done diff --git a/pkgs/development/libraries/aspell/default.nix b/pkgs/development/libraries/aspell/default.nix index 52f7818428fd..d259efcc8c0b 100644 --- a/pkgs/development/libraries/aspell/default.nix +++ b/pkgs/development/libraries/aspell/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, perl}: +{stdenv, fetchurl, perl, which}: stdenv.mkDerivation { name = "aspell-0.60.5"; @@ -6,6 +6,14 @@ stdenv.mkDerivation { url = ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.5.tar.gz; md5 = "17fd8acac6293336bcef44391b71e337"; }; + builder = ./builder.sh; - buildInputs = [perl]; + buildInputs = [perl which]; + dictionaries = + let en = fetchurl { + url = ftp://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-6.0-0.tar.bz2; + md5 = "16449e0a266e1ecc526b2f3cd39d4bc2"; + }; + in + [ en ]; } |