diff --git a/Setup.hs b/Setup.hs
--- a/Setup.hs
+++ b/Setup.hs
@@ -1,12 +1,10 @@
 {-# LANGUAGE OverloadedStrings #-}
 
-import Distribution.Simple
-import Data.GI.CodeGen.CabalHooks (confCodeGenHook)
+import Distribution.Simple (defaultMainWithHooks)
+import Data.GI.CodeGen.CabalHooks (simpleHaskellGIHooks)
 
-main = defaultMainWithHooks simpleUserHooks
-  { confHook = confCodeGenHook name version verbose overridesFile outputDir
-               (confHook simpleUserHooks)
-  }
+main = defaultMainWithHooks (simpleHaskellGIHooks name version verbose
+                             overridesFile outputDir)
     where name = "GLib"
           version = "2.0"
           verbose = False
diff --git a/gi-glib.cabal b/gi-glib.cabal
--- a/gi-glib.cabal
+++ b/gi-glib.cabal
@@ -1,5 +1,5 @@
 name:               gi-glib
-version:            0.0.2
+version:            0.0.2.1
 synopsis:           GLib bindings
 description:        Bindings for GLib, autogenerated by haskell-gi.
 homepage:           https://github.com/haskell-gi/haskell-gi
@@ -16,7 +16,7 @@
 custom-setup
   setup-depends: base >= 4.7,
                  Cabal >= 1.24,
-                 haskell-gi >= 0.14
+                 haskell-gi >= 0.15
 
 library
     default-language:   Haskell2010
@@ -26,7 +26,7 @@
 
     pkgconfig-depends:  glib-2.0 >= 2.46
     build-depends: base >= 4.7 && <5,
-        haskell-gi-base >= 0.14 && < 1,
+        haskell-gi-base >= 0.15 && < 1,
         bytestring >= 0.10,
         containers >= 0.5,
         text >= 1.0,
