diff --git a/GdkPixbuf.overrides b/GdkPixbuf.overrides
--- a/GdkPixbuf.overrides
+++ b/GdkPixbuf.overrides
@@ -2,12 +2,15 @@
 
 # Not supported on Windows.
 if windows
-   set-attr GdkPixbuf/Pixbuf/new_from_file c:identifier gdk_pixbuf_new_from_file_utf8
-   set-attr GdkPixbuf/Pixbuf/new_from_file_at_scale c:identifier gdk_pixbuf_new_from_file_at_scale_utf8
-   set-attr GdkPixbuf/Pixbuf/new_from_file_at_size c:identifier gdk_pixbuf_new_from_file_at_size_utf8
    set-attr GdkPixbuf/Pixbuf/save c:identifier gdk_pixbuf_save_utf8
-   set-attr GdkPixbuf/Pixbuf/savev c:identifier gdk_pixbuf_savev_utf8
-   set-attr GdkPixbuf/PixbufAnimation/new_from_file c:identifier gdk_pixbuf_animation_new_from_file_utf8
+   # See https://github.com/haskell-gi/haskell-gi/issues/63
+   if pkg-config-version gdk-pixbuf-2.0 < 2.36
+      set-attr GdkPixbuf/Pixbuf/new_from_file c:identifier gdk_pixbuf_new_from_file_utf8
+      set-attr GdkPixbuf/Pixbuf/new_from_file_at_scale c:identifier gdk_pixbuf_new_from_file_at_scale_utf8
+      set-attr GdkPixbuf/Pixbuf/new_from_file_at_size c:identifier gdk_pixbuf_new_from_file_at_size_utf8
+      set-attr GdkPixbuf/Pixbuf/savev c:identifier gdk_pixbuf_savev_utf8
+      set-attr GdkPixbuf/PixbufAnimation/new_from_file c:identifier gdk_pixbuf_animation_new_from_file_utf8
+   endif
 endif
 
 # Generated from gdk-pixbuf 2.34.0 with xsltproc Nullable.xslt GdkPixbuf-2.0.gir
diff --git a/gi-gdkpixbuf.cabal b/gi-gdkpixbuf.cabal
--- a/gi-gdkpixbuf.cabal
+++ b/gi-gdkpixbuf.cabal
@@ -1,5 +1,5 @@
 name:                 gi-gdkpixbuf
-version:              2.0.6
+version:              2.0.7
 synopsis:             GdkPixbuf bindings
 description:          Bindings for GdkPixbuf, autogenerated by haskell-gi.
 homepage:             https://github.com/haskell-gi/haskell-gi
@@ -9,14 +9,9 @@
 maintainer:           Iñaki García Etxebarria (garetxe@gmail.com)
 category:             Bindings
 build-type:           Custom
-cabal-version:        >= 1.24
-
-extra-source-files: GdkPixbuf.overrides
+cabal-version:        >= 1.22
 
-custom-setup
-      setup-depends: base >= 4.7 && < 5,
-                     Cabal >= 1.24,
-                     haskell-gi >= 0.18 && < 1
+extra-source-files: stack.yaml GdkPixbuf.overrides
 
 Flag overloaded-methods
       Description: Generate support for overloaded methods.
@@ -35,7 +30,8 @@
 
       pkgconfig-depends: gdk-pixbuf-2.0
       build-depends: base >= 4.7 && <5,
-                     haskell-gi-base >= 0.18 && < 1,
+                     haskell-gi-base >= 0.20 && < 1,
+                     haskell-gi >= 0.20 && < 1,
                      gi-gio == 2.0.*,
                      gi-gobject == 2.0.*,
                      gi-glib == 2.0.*,
diff --git a/stack.yaml b/stack.yaml
new file mode 100644
--- /dev/null
+++ b/stack.yaml
@@ -0,0 +1,8 @@
+packages:
+- '.'
+extra-deps:
+- 'haskell-gi-0.20'
+- 'haskell-gi-base-0.20'
+explicit-setup-deps:
+  ! '*': true
+resolver: lts-7.11
