Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / gtkspell / default.nix
blobeb8b1363c32b7ebaa805bc335047a3f10cd4f323
1 { stdenv
2 , lib
3 , fetchurl
4 , fetchpatch
5 , autoreconfHook
6 , docbook_xsl
7 , gtk-doc
8 , intltool
9 , pkg-config
10 , aspell
11 , enchant
12 , gtk2
15 stdenv.mkDerivation rec {
16   pname = "gtkspell";
17   version = "2.0.16";
19   src = fetchurl {
20     url = "mirror://sourceforge/gtkspell/${pname}-${version}.tar.gz";
21     sha256 = "00hdv28bp72kg1mq2jdz1sdw2b8mb9iclsp7jdqwpck705bdriwg";
22   };
24   patches = [
25     # Build with enchant 2
26     # https://github.com/archlinux/svntogit-packages/tree/packages/gtkspell/trunk
27     (fetchpatch {
28       url = "https://github.com/archlinux/svntogit-packages/raw/17fb30b5196db378c18e7c115f28e97b962b95ff/trunk/enchant-2.diff";
29       sha256 = "0d9409bnapwzwhnfpz3dvl6qalskqa4lzmhrmciazsypbw3ry5rf";
30     })
31   ];
33   nativeBuildInputs = [
34     autoreconfHook
35     docbook_xsl
36     gtk-doc
37     intltool
38     pkg-config
39   ];
41   buildInputs = [
42     aspell
43     enchant
44     gtk2
45   ];
47   meta = with lib; {
48     description = "Word-processor-style highlighting and replacement of misspelled words";
49     homepage = "https://gtkspell.sourceforge.net";
50     platforms = platforms.unix;
51     license = licenses.gpl2;
52   };