3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/aspell/default.nix

37 lines
849 B
Nix
Raw Normal View History

{stdenv, fetchurl, perl
, searchNixProfiles ? true}:
stdenv.mkDerivation rec {
name = "aspell-0.60.6.1";
src = fetchurl {
url = "mirror://gnu/aspell/${name}.tar.gz";
sha256 = "1qgn5psfyhbrnap275xjfrzppf5a83fb67gpql0kfqv37al869gm";
};
2014-08-17 21:17:13 +01:00
patchPhase = ''
patch interfaces/cc/aspell.h < ${./clang.patch}
'' + stdenv.lib.optionalString searchNixProfiles ''
patch -p1 < ${./data-dirs-from-nix-profiles.patch}
2014-08-17 21:17:13 +01:00
'';
buildInputs = [ perl ];
doCheck = true;
preConfigure = ''
configureFlagsArray=(
--enable-pkglibdir=$out/lib/aspell
--enable-pkgdatadir=$out/lib/aspell
);
'';
meta = {
description = "Spell checker for many languages";
homepage = http://aspell.net/;
license = stdenv.lib.licenses.lgpl2Plus;
2013-08-16 22:44:33 +01:00
maintainers = [ ];
2014-10-27 17:52:28 +00:00
platforms = with stdenv.lib.platforms; all;
};
}