Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchurl, 5 fetchpatch, 6 autoreconfHook, 7 docbook_xsl, 8 gtk-doc, 9 intltool, 10 pkg-config, 11 aspell, 12 enchant, 13 gtk2, 14}: 15 16stdenv.mkDerivation rec { 17 pname = "gtkspell"; 18 version = "2.0.16"; 19 20 src = fetchurl { 21 url = "mirror://sourceforge/gtkspell/${pname}-${version}.tar.gz"; 22 sha256 = "00hdv28bp72kg1mq2jdz1sdw2b8mb9iclsp7jdqwpck705bdriwg"; 23 }; 24 25 patches = [ 26 # Fix build with gettext 0.25 27 ./gettext-0.25.patch 28 # Build with enchant 2 29 # https://github.com/archlinux/svntogit-packages/tree/packages/gtkspell/trunk 30 (fetchpatch { 31 url = "https://github.com/archlinux/svntogit-packages/raw/17fb30b5196db378c18e7c115f28e97b962b95ff/trunk/enchant-2.diff"; 32 sha256 = "0d9409bnapwzwhnfpz3dvl6qalskqa4lzmhrmciazsypbw3ry5rf"; 33 }) 34 ]; 35 36 nativeBuildInputs = [ 37 autoreconfHook 38 docbook_xsl 39 gtk2 # GLIB_GNU_GETTEXT 40 gtk-doc 41 intltool 42 pkg-config 43 ]; 44 45 buildInputs = [ 46 aspell 47 enchant 48 gtk2 49 ]; 50 51 meta = with lib; { 52 description = "Word-processor-style highlighting and replacement of misspelled words"; 53 homepage = "https://gtkspell.sourceforge.net"; 54 platforms = platforms.unix; 55 license = licenses.gpl2; 56 }; 57}