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
This commit is contained in:
Martin Bravenboer 2007-07-04 01:35:29 +00:00
parent 9c542effbe
commit 5983f91836
3 changed files with 29 additions and 6 deletions

View file

@ -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

View file

@ -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 ];
}

View file

@ -1223,7 +1223,7 @@ rec {
};
aspell = import ../development/libraries/aspell {
inherit fetchurl stdenv perl;
inherit fetchurl stdenv perl which;
};
audiofile = import ../development/libraries/audiofile {
@ -3135,12 +3135,11 @@ rec {
wrapFirefox = firefox: import ../applications/networking/browsers/firefox-wrapper {
inherit stdenv firefox;
plugins = [
MPlayerPlugin
]
plugins = []
++ lib.optional (system == "i686-linux") flashplayer
# RealPlayer is disabled by default for legal reasons.
++ lib.optional (system != "i686-linux" && getConfig ["firefox" "enableRealPlayer"] false) RealPlayer
++ lib.optional (getConfig ["firefox" "enableMPlayer"] true) MPlayerPlugin
++ lib.optional (supportsJDK && jrePlugin ? mozillaPlugin) jrePlugin;
};