gtkspell2: Build with enchant2
We want to remove enchant1 when possible.
This commit is contained in:
parent
2cae716942
commit
802c7a0caf
2 changed files with 36 additions and 4 deletions
|
@ -1,4 +1,16 @@
|
|||
{lib, stdenv, fetchurl, gtk2, aspell, pkg-config, enchant, intltool}:
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, autoreconfHook
|
||||
, docbook_xsl
|
||||
, gtk-doc
|
||||
, intltool
|
||||
, pkg-config
|
||||
, aspell
|
||||
, enchant
|
||||
, gtk2
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gtkspell";
|
||||
|
@ -9,8 +21,28 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "00hdv28bp72kg1mq2jdz1sdw2b8mb9iclsp7jdqwpck705bdriwg";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config intltool ];
|
||||
buildInputs = [aspell gtk2 enchant];
|
||||
patches = [
|
||||
# Build with enchant 2
|
||||
# https://github.com/archlinux/svntogit-packages/tree/packages/gtkspell/trunk
|
||||
(fetchpatch {
|
||||
url = "https://github.com/archlinux/svntogit-packages/raw/17fb30b5196db378c18e7c115f28e97b962b95ff/trunk/enchant-2.diff";
|
||||
sha256 = "0d9409bnapwzwhnfpz3dvl6qalskqa4lzmhrmciazsypbw3ry5rf";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
docbook_xsl
|
||||
gtk-doc
|
||||
intltool
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
aspell
|
||||
enchant
|
||||
gtk2
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Word-processor-style highlighting and replacement of misspelled words";
|
||||
|
|
|
@ -20006,7 +20006,7 @@ with pkgs;
|
|||
|
||||
gtksourceviewmm4 = callPackage ../development/libraries/gtksourceviewmm/4.x.nix { };
|
||||
|
||||
gtkspell2 = callPackage ../development/libraries/gtkspell { enchant = enchant1; };
|
||||
gtkspell2 = callPackage ../development/libraries/gtkspell { };
|
||||
|
||||
gtkspell3 = callPackage ../development/libraries/gtkspell/3.nix { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue