diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,3 +1,7 @@
+### 4.0.24
+
++ Add support for inherited dependencies
+
 ### 4.0.23
 
 + Tighten bounds in haskell-gi(-base)
diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 # Documentation
 Autogenerated documentation for this package can be found at
 
-[https://hackage.haskell.org/package/gi-webkit2-4.0.23/docs/GI-WebKit2.html](https://hackage.haskell.org/package/gi-webkit2-4.0.23/docs/GI-WebKit2.html)
+[https://hackage.haskell.org/package/gi-webkit2-4.0.24/docs/GI-WebKit2.html](https://hackage.haskell.org/package/gi-webkit2-4.0.24/docs/GI-WebKit2.html)
 
 For general documentation on using [haskell-gi](https://github.com/haskell-gi/haskell-gi) based bindings, see [the project page](https://github.com/haskell-gi/haskell-gi) or [the Wiki](https://github.com/haskell-gi/haskell-gi/wiki).
diff --git a/Setup.hs b/Setup.hs
--- a/Setup.hs
+++ b/Setup.hs
@@ -1,11 +1,23 @@
 {-# LANGUAGE OverloadedStrings #-}
 
-import Data.GI.CodeGen.CabalHooks (setupHaskellGIBinding)
+import Data.GI.CodeGen.CabalHooks (setupBinding, TaggedOverride(..))
 
+import qualified GI.Atk.Config as Atk
+import qualified GI.GLib.Config as GLib
+import qualified GI.GObject.Config as GObject
+import qualified GI.Gdk.Config as Gdk
+import qualified GI.Gio.Config as Gio
+import qualified GI.Gtk.Config as Gtk
+import qualified GI.JavaScriptCore.Config as JavaScriptCore
+import qualified GI.Soup.Config as Soup
+import qualified GI.Cairo.Config as Cairo
+
+
 main :: IO ()
-main = setupHaskellGIBinding name version verbose overridesFile outputDir
+main = setupBinding name version verbose overridesFile inheritedOverrides outputDir
   where name = "WebKit2"
         version = "4.0"
         overridesFile = Just "WebKit2.overrides"
         verbose = False
         outputDir = Nothing
+        inheritedOverrides = [TaggedOverride "inherited:Atk" Atk.overrides, TaggedOverride "inherited:GLib" GLib.overrides, TaggedOverride "inherited:GObject" GObject.overrides, TaggedOverride "inherited:Gdk" Gdk.overrides, TaggedOverride "inherited:Gio" Gio.overrides, TaggedOverride "inherited:Gtk" Gtk.overrides, TaggedOverride "inherited:JavaScriptCore" JavaScriptCore.overrides, TaggedOverride "inherited:Soup" Soup.overrides, TaggedOverride "inherited:Cairo" Cairo.overrides]
diff --git a/gi-webkit2.cabal b/gi-webkit2.cabal
--- a/gi-webkit2.cabal
+++ b/gi-webkit2.cabal
@@ -1,5 +1,5 @@
 name:                 gi-webkit2
-version:              4.0.23
+version:              4.0.24
 synopsis:             WebKit2 bindings
 description:          Bindings for WebKit2, autogenerated by haskell-gi.
 homepage:             https://github.com/haskell-gi/haskell-gi
@@ -16,7 +16,16 @@
 custom-setup
       setup-depends: base >= 4.9 && < 5,
                      Cabal >= 1.24,
-                     haskell-gi >= 0.22.0 && < 0.23
+                     haskell-gi >= 0.22.5 && < 0.23,
+                     gi-cairo == 1.0.*,
+                     gi-soup == 2.4.*,
+                     gi-javascriptcore == 4.0.*,
+                     gi-gtk == 3.0.*,
+                     gi-gio == 2.0.*,
+                     gi-gdk == 3.0.*,
+                     gi-gobject == 2.0.*,
+                     gi-glib == 2.0.*,
+                     gi-atk == 2.0.*
 
 library
       default-language: Haskell2010
@@ -27,7 +36,7 @@
       pkgconfig-depends: webkit2gtk-4.0
       build-depends: base >= 4.7 && <5,
                      haskell-gi-base >= 0.22.0 && < 0.23,
-                     haskell-gi >= 0.22.0 && < 0.23,
+                     haskell-gi >= 0.22.5 && < 0.23,
                      haskell-gi-overloading < 1.1,
                      gi-cairo == 1.0.*,
                      gi-soup == 2.4.*,
@@ -47,6 +56,12 @@
       -- see https://ghc.haskell.org/trac/ghc/ticket/14382
       if impl(ghc == 8.2.*)
               build-depends: haskell-gi-overloading == 0.0
+
+      -- Note that the following list of exposed modules and autogen
+      -- modules is for documentation purposes only, so that some
+      -- documentation appears in hackage. The actual list of modules
+      -- to be built will be built at configure time, based on the
+      -- available introspection data.
 
       exposed-modules: GI.WebKit2,
                        GI.WebKit2.Callbacks,
