haskell.packages.ghc96.taffybar: Fix build with blunt force

This applies the Cabal pkgconfig workaround to taffybar and all of its
pkgconfig-using dependencies.

A typical example of the build error looks like this:

  Package libpcre2-8 was not found in the pkg-config search path.
This commit is contained in:
Rodney Lorrimar 2023-07-06 16:04:25 +08:00
parent 285a85dac4
commit 689ff4fd8f
No known key found for this signature in database
GPG key ID: D8B75C95FB4D1143

View file

@ -189,10 +189,35 @@ self: super: {
gi-cairo-connector # mtl <2.3
;
# Apply workaround for Cabal 3.8 bug https://github.com/haskell/cabal/issues/8455
# by making `pkg-config --static` happy. Note: Cabal 3.9 is also affected, so
# the GHC 9.6 configuration may need similar overrides eventually.
X11-xft = __CabalEagerPkgConfigWorkaround super.X11-xft;
# Apply workaround for Cabal 3.9 bug https://github.com/haskell/cabal/issues/8455
# by making `pkg-config --static` happy. Note: Cabal 3.8 is also affected, so
# the GHC 9.4 configuration needs similar overrides.
inherit (pkgs.lib.mapAttrs (_: __CabalEagerPkgConfigWorkaround) super)
X11-xft
cairo
gi-atk
gi-cairo
gi-cairo-render
gi-dbusmenu
gi-dbusmenugtk3
gi-gdk
gi-gdkpixbuf
gi-gdkx11
gi-gio
gi-glib
gi-gmodule
gi-gobject
gi-gtk
gi-harfbuzz
gi-pango
gi-xlib
glib
gtk-sni-tray
haskell-gi
haskell-gi-base
pango
taffybar
;
# Pending text-2.0 support https://github.com/gtk2hs/gtk2hs/issues/327
gtk = doJailbreak super.gtk;