lol
1{ stdenv, fetchurl, fetchpatch, perl
2, searchNixProfiles ? true
3}:
4
5stdenv.mkDerivation rec {
6 name = "aspell-0.60.6.1";
7
8 src = fetchurl {
9 url = "mirror://gnu/aspell/${name}.tar.gz";
10 sha256 = "1qgn5psfyhbrnap275xjfrzppf5a83fb67gpql0kfqv37al869gm";
11 };
12
13 patches = [
14 (fetchpatch { # remove in >= 0.60.7
15 name = "gcc-7.patch";
16 url = "https://github.com/GNUAspell/aspell/commit/8089fa02122fed0a.diff";
17 sha256 = "1b3p1zy2lqr2fknddckm58hyk95hw4scf6hzjny1v9iaic2p37ix";
18 })
19 ] ++ stdenv.lib.optional searchNixProfiles ./data-dirs-from-nix-profiles.patch;
20
21 postPatch = ''
22 patch interfaces/cc/aspell.h < ${./clang.patch}
23 '';
24
25 nativeBuildInputs = [ perl ];
26
27 doCheck = true;
28
29 preConfigure = ''
30 configureFlagsArray=(
31 --enable-pkglibdir=$out/lib/aspell
32 --enable-pkgdatadir=$out/lib/aspell
33 );
34 '';
35
36 meta = {
37 description = "Spell checker for many languages";
38 homepage = http://aspell.net/;
39 license = stdenv.lib.licenses.lgpl2Plus;
40 maintainers = [ ];
41 platforms = with stdenv.lib.platforms; all;
42 };
43}