about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2023-07-26 22:11:12 +0200
committersternenseemann <sternenseemann@systemli.org>2023-08-07 13:58:06 +0200
commita83158c7b9c248032de5be0e69a38c5c44f00801 (patch)
tree296ff12898c389dc32ba551b2c0eec363bd721ee /pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix
parentf6f780f129f50df536fb301b9dac554f9744ab4b (diff)
downloadnixlib-a83158c7b9c248032de5be0e69a38c5c44f00801.tar
nixlib-a83158c7b9c248032de5be0e69a38c5c44f00801.tar.gz
nixlib-a83158c7b9c248032de5be0e69a38c5c44f00801.tar.bz2
nixlib-a83158c7b9c248032de5be0e69a38c5c44f00801.tar.lz
nixlib-a83158c7b9c248032de5be0e69a38c5c44f00801.tar.xz
nixlib-a83158c7b9c248032de5be0e69a38c5c44f00801.tar.zst
nixlib-a83158c7b9c248032de5be0e69a38c5c44f00801.zip
haskellPackages.mkDerivation: propagate pc deps for GHC >= 9.4
This change essentially amounts to inlining
__CabalEagerPkgConfigWorkaround into haskellPackages.mkDerivation and
applying it automatically for the affected GHC versions. This is a bit
overeager, but the best automatic solution we can come up with for now.

Consequently, we don't need __CabalEagerPkgConfigWorkaround in nixpkgs
anymore nor downstream at least for “standard” haskellPackages builds.
__CabalEagerPkgConfigWorkaround is preserved for now since it is still
necessary if using GHC < 9.4 with Cabal >= 3.10 or cabal-install >= 3.10.

The one thing that may or may not be negatively affected by this change
is ghcWithPackages. I doubt this is a problem in practice though, since
it didn't provide pkg-config in the first place. passthru.env and
shellFor do and work correctly since they rely on mkDerivation.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix40
1 files changed, 0 insertions, 40 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix
index fd8c582882aa..1d9b216da6b7 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix
@@ -112,44 +112,4 @@ in {
   fourmolu = overrideCabal (drv: {
     libraryHaskellDepends = drv.libraryHaskellDepends ++ [ self.file-embed ];
   }) (disableCabalFlag "fixity-th" super.fourmolu);
-
-  # 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 shall need similar overrides.
-  X11-xft = __CabalEagerPkgConfigWorkaround super.X11-xft;
-  # Jailbreaks for https://github.com/gtk2hs/gtk2hs/issues/323#issuecomment-1416723309
-  glib = __CabalEagerPkgConfigWorkaround (doJailbreak super.glib);
-  cairo = __CabalEagerPkgConfigWorkaround (doJailbreak super.cairo);
-  pango = __CabalEagerPkgConfigWorkaround (doJailbreak super.pango);
-
-  # Cabal 3.8 bug workaround for haskell-gi family of libraries
-  gi-atk = __CabalEagerPkgConfigWorkaround super.gi-atk;
-  gi-cairo = __CabalEagerPkgConfigWorkaround super.gi-cairo;
-  gi-gdk = __CabalEagerPkgConfigWorkaround super.gi-gdk;
-  gi-gdkpixbuf = __CabalEagerPkgConfigWorkaround super.gi-gdkpixbuf;
-  gi-gio = __CabalEagerPkgConfigWorkaround super.gi-gio;
-  gi-glib = __CabalEagerPkgConfigWorkaround super.gi-glib;
-  gi-gmodule = __CabalEagerPkgConfigWorkaround super.gi-gmodule;
-  gi-gobject = __CabalEagerPkgConfigWorkaround super.gi-gobject;
-  gi-gtk = __CabalEagerPkgConfigWorkaround super.gi-gtk;
-  gi-harfbuzz = __CabalEagerPkgConfigWorkaround super.gi-harfbuzz;
-  gi-pango = __CabalEagerPkgConfigWorkaround super.gi-pango;
-  gi-vte = __CabalEagerPkgConfigWorkaround super.gi-vte;
-  haskell-gi = __CabalEagerPkgConfigWorkaround super.haskell-gi;
-  haskell-gi-base = __CabalEagerPkgConfigWorkaround super.haskell-gi-base;
-  svgcairo = __CabalEagerPkgConfigWorkaround super.svgcairo;
-  gtk3 = __CabalEagerPkgConfigWorkaround super.gtk3;
-  webkit2gtk3-javascriptcore = __CabalEagerPkgConfigWorkaround super.webkit2gtk3-javascriptcore;
-  gi-javascriptcore = __CabalEagerPkgConfigWorkaround super.gi-javascriptcore;
-  gi-soup = __CabalEagerPkgConfigWorkaround super.gi-soup;
-  gio = __CabalEagerPkgConfigWorkaround super.gio;
-  gtk = __CabalEagerPkgConfigWorkaround super.gtk;
-  termonad = __CabalEagerPkgConfigWorkaround super.termonad;
-  gi-cairo-render = __CabalEagerPkgConfigWorkaround super.gi-cairo-render;
-  gi-dbusmenu = __CabalEagerPkgConfigWorkaround super.gi-dbusmenu;
-  gi-dbusmenugtk3 = __CabalEagerPkgConfigWorkaround super.gi-dbusmenugtk3;
-  gi-gdkx11 = __CabalEagerPkgConfigWorkaround super.gi-gdkx11;
-  gi-xlib = __CabalEagerPkgConfigWorkaround super.gi-xlib;
-  gtk-sni-tray = __CabalEagerPkgConfigWorkaround super.gtk-sni-tray;
-  taffybar = __CabalEagerPkgConfigWorkaround super.taffybar;
 }