about summary refs log tree commit diff
path: root/pkgs/desktops/gnome/misc
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2023-01-15 11:49:33 +0800
committerBobby Rong <rjl931189261@126.com>2023-01-15 11:49:33 +0800
commit7149f55fbf67b9e18618ad0d9b0a14c6ec8bd165 (patch)
tree172bb5e2fb3ae3752edd67dee698cb61813fb13e /pkgs/desktops/gnome/misc
parent0ff53d61ff8e635819cea4fe700e1920cbf9dc3e (diff)
gnome.gtkhtml: use enchant2
We expect gnome2.gtkhtml4 provides exactly the same thing as gnome.gtkhtml.

This applies 8696842 to this package as well.
Diffstat (limited to 'pkgs/desktops/gnome/misc')
-rw-r--r--pkgs/desktops/gnome/misc/gtkhtml/default.nix15
1 files changed, 13 insertions, 2 deletions
diff --git a/pkgs/desktops/gnome/misc/gtkhtml/default.nix b/pkgs/desktops/gnome/misc/gtkhtml/default.nix
index f4454e15bb9e6..9eb93bc8bc44a 100644
--- a/pkgs/desktops/gnome/misc/gtkhtml/default.nix
+++ b/pkgs/desktops/gnome/misc/gtkhtml/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, pkg-config, gtk3, intltool
+{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook, pkg-config, gtk3, intltool
 , gnome, enchant, isocodes, gsettings-desktop-schemas }:
 
 stdenv.mkDerivation rec {
@@ -10,11 +10,22 @@ stdenv.mkDerivation rec {
     sha256 = "ca3b6424fb2c7ac5d9cb8fdafb69318fa2e825c9cf6ed17d1e38d9b29e5606c3";
   };
 
+  patches = [
+    # Enables enchant2 support.
+    # Upstream is dead, no further releases are coming.
+    (fetchpatch {
+      name ="enchant-2.patch";
+      url = "https://aur.archlinux.org/cgit/aur.git/plain/enchant-2.patch?h=gtkhtml4&id=0218303a63d64c04d6483a6fe9bb55063fcfaa43";
+      sha256 = "f0OToWGHZwxvqf+0qosfA9FfwJ/IXfjIPP5/WrcvArI=";
+      extraPrefix = "";
+    })
+  ];
+
   passthru = {
     updateScript = gnome.updateScript { packageName = "gtkhtml"; attrPath = "gnome.gtkhtml"; };
   };
 
-  nativeBuildInputs = [ pkg-config intltool ];
+  nativeBuildInputs = [ autoreconfHook pkg-config intltool ];
   buildInputs = [ gtk3 gnome.adwaita-icon-theme
                   gsettings-desktop-schemas ];