2017-11-12 10:15:07 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, perl
|
|
|
|
, searchNixProfiles ? true
|
|
|
|
}:
|
2007-05-13 14:22:24 +00:00
|
|
|
|
2009-02-12 19:34:03 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2011-08-22 17:37:59 +00:00
|
|
|
name = "aspell-0.60.6.1";
|
|
|
|
|
2007-05-13 14:22:24 +00:00
|
|
|
src = fetchurl {
|
2013-07-14 02:23:06 +00:00
|
|
|
url = "mirror://gnu/aspell/${name}.tar.gz";
|
2011-08-22 17:37:59 +00:00
|
|
|
sha256 = "1qgn5psfyhbrnap275xjfrzppf5a83fb67gpql0kfqv37al869gm";
|
2007-05-13 14:22:24 +00:00
|
|
|
};
|
2011-08-22 17:37:59 +00:00
|
|
|
|
2017-11-12 10:15:07 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch { # remove in >= 0.60.7
|
|
|
|
name = "gcc-7.patch";
|
|
|
|
url = "https://github.com/GNUAspell/aspell/commit/8089fa02122fed0a.diff";
|
|
|
|
sha256 = "1b3p1zy2lqr2fknddckm58hyk95hw4scf6hzjny1v9iaic2p37ix";
|
|
|
|
})
|
|
|
|
] ++ stdenv.lib.optional searchNixProfiles ./data-dirs-from-nix-profiles.patch;
|
|
|
|
|
|
|
|
postPatch = ''
|
2014-08-17 20:17:13 +00:00
|
|
|
patch interfaces/cc/aspell.h < ${./clang.patch}
|
|
|
|
'';
|
|
|
|
|
2018-01-15 00:30:28 +00:00
|
|
|
nativeBuildInputs = [ perl ];
|
2011-08-22 17:37:59 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2007-05-13 14:22:24 +00:00
|
|
|
|
2014-04-16 17:59:27 +00:00
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray=(
|
|
|
|
--enable-pkglibdir=$out/lib/aspell
|
|
|
|
--enable-pkgdatadir=$out/lib/aspell
|
|
|
|
);
|
|
|
|
'';
|
|
|
|
|
2007-10-23 16:33:11 +00:00
|
|
|
meta = {
|
2013-10-05 14:22:46 +00:00
|
|
|
description = "Spell checker for many languages";
|
2007-10-23 16:33:11 +00:00
|
|
|
homepage = http://aspell.net/;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2013-08-16 21:44:33 +00:00
|
|
|
maintainers = [ ];
|
2014-10-27 17:52:28 +00:00
|
|
|
platforms = with stdenv.lib.platforms; all;
|
2007-10-23 16:33:11 +00:00
|
|
|
};
|
2007-05-13 14:22:24 +00:00
|
|
|
}
|