2017-10-08 21:42:22 +02:00
|
|
|
{stdenv, fetchurl, perl
|
|
|
|
, searchNixProfiles ? true}:
|
2007-05-13 16:22:24 +02:00
|
|
|
|
2009-02-12 20:34:03 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2011-08-22 19:37:59 +02:00
|
|
|
name = "aspell-0.60.6.1";
|
|
|
|
|
2007-05-13 16:22:24 +02:00
|
|
|
src = fetchurl {
|
2013-07-14 04:23:06 +02:00
|
|
|
url = "mirror://gnu/aspell/${name}.tar.gz";
|
2011-08-22 19:37:59 +02:00
|
|
|
sha256 = "1qgn5psfyhbrnap275xjfrzppf5a83fb67gpql0kfqv37al869gm";
|
2007-05-13 16:22:24 +02:00
|
|
|
};
|
2011-08-22 19:37:59 +02:00
|
|
|
|
2014-08-17 22:17:13 +02:00
|
|
|
patchPhase = ''
|
|
|
|
patch interfaces/cc/aspell.h < ${./clang.patch}
|
2017-10-08 21:42:22 +02:00
|
|
|
'' + stdenv.lib.optionalString searchNixProfiles ''
|
|
|
|
patch -p1 < ${./data-dirs-from-nix-profiles.patch}
|
2014-08-17 22:17:13 +02:00
|
|
|
'';
|
|
|
|
|
2011-08-22 19:37:59 +02:00
|
|
|
buildInputs = [ perl ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2007-05-13 16:22:24 +02:00
|
|
|
|
2014-04-16 19:59:27 +02:00
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray=(
|
|
|
|
--enable-pkglibdir=$out/lib/aspell
|
|
|
|
--enable-pkgdatadir=$out/lib/aspell
|
|
|
|
);
|
|
|
|
'';
|
|
|
|
|
2007-10-23 18:33:11 +02:00
|
|
|
meta = {
|
2013-10-05 16:22:46 +02:00
|
|
|
description = "Spell checker for many languages";
|
2007-10-23 18:33:11 +02:00
|
|
|
homepage = http://aspell.net/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2013-08-16 23:44:33 +02:00
|
|
|
maintainers = [ ];
|
2014-10-27 18:52:28 +01:00
|
|
|
platforms = with stdenv.lib.platforms; all;
|
2007-10-23 18:33:11 +02:00
|
|
|
};
|
2007-05-13 16:22:24 +02:00
|
|
|
}
|