Merge pull request #211182 from bobby285271/upd/gtkspell2-enchant2

gtkspell2: Build with enchant2

authored by

Bobby Rong and committed by
GitHub
809fe35f df93f457

+36 -4
+35 -3
pkgs/development/libraries/gtkspell/default.nix
··· 1 - {lib, stdenv, fetchurl, gtk2, aspell, pkg-config, enchant, intltool}: 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 13 + }: 2 14 3 15 stdenv.mkDerivation rec { 4 16 pname = "gtkspell"; ··· 9 21 sha256 = "00hdv28bp72kg1mq2jdz1sdw2b8mb9iclsp7jdqwpck705bdriwg"; 10 22 }; 11 23 12 - nativeBuildInputs = [ pkg-config intltool ]; 13 - buildInputs = [aspell gtk2 enchant]; 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 + ]; 32 + 33 + nativeBuildInputs = [ 34 + autoreconfHook 35 + docbook_xsl 36 + gtk-doc 37 + intltool 38 + pkg-config 39 + ]; 40 + 41 + buildInputs = [ 42 + aspell 43 + enchant 44 + gtk2 45 + ]; 14 46 15 47 meta = with lib; { 16 48 description = "Word-processor-style highlighting and replacement of misspelled words";
+1 -1
pkgs/top-level/all-packages.nix
··· 20015 20015 20016 20016 gtksourceviewmm4 = callPackage ../development/libraries/gtksourceviewmm/4.x.nix { }; 20017 20017 20018 - gtkspell2 = callPackage ../development/libraries/gtkspell { enchant = enchant1; }; 20018 + gtkspell2 = callPackage ../development/libraries/gtkspell { }; 20019 20019 20020 20020 gtkspell3 = callPackage ../development/libraries/gtkspell/3.nix { }; 20021 20021