1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00
nixpkgs/pkgs/development/libraries/aspell/default.nix
Bojan Nikolic 842613fb10 aspell: improve the doc string, fixes #11814
It is better to specify data-dir in the environmental variable since
then both the language description files and the dictionaries will be
found. Since dict-dir defaults to data-dir only the latter needs to be
set. See for example https://github.com/NixOS/nixpkgs/issues/1000
2015-12-22 01:56:27 +01:00

41 lines
1 KiB
Nix

{stdenv, fetchurl, perl}:
stdenv.mkDerivation rec {
name = "aspell-0.60.6.1";
src = fetchurl {
url = "mirror://gnu/aspell/${name}.tar.gz";
sha256 = "1qgn5psfyhbrnap275xjfrzppf5a83fb67gpql0kfqv37al869gm";
};
patchPhase = ''
patch interfaces/cc/aspell.h < ${./clang.patch}
'';
buildInputs = [ perl ];
doCheck = true;
preConfigure = ''
configureFlagsArray=(
--enable-pkglibdir=$out/lib/aspell
--enable-pkgdatadir=$out/lib/aspell
);
'';
# Note: Users should define the `ASPELL_CONF' environment variable to
# `data-dir $HOME/.nix-profile/lib/aspell/' so that they can access
# dictionaries installed in their profile.
#
# We can't use `$out/etc/aspell.conf' for that purpose since Aspell
# doesn't expand environment variables such as `$HOME'.
meta = {
description = "Spell checker for many languages";
homepage = http://aspell.net/;
license = stdenv.lib.licenses.lgpl2Plus;
maintainers = [ ];
platforms = with stdenv.lib.platforms; all;
};
}