diff --git a/Gst.overrides b/Gst.overrides
--- a/Gst.overrides
+++ b/Gst.overrides
@@ -1,5 +1,8 @@
 namespace Gst
 
+# Not needed for the bindings
+ignore MiniObject.take
+
 # Generated from gst 1.8.0 with xsltproc Nullable.xslt Gst-1.0.gir
 set-attr Gst/Allocator/find/@return-value nullable 1
 set-attr Gst/Allocator/find/@parameters/name nullable 1
diff --git a/gi-gst.cabal b/gi-gst.cabal
--- a/gi-gst.cabal
+++ b/gi-gst.cabal
@@ -1,5 +1,5 @@
 name:                 gi-gst
-version:              1.0.6
+version:              1.0.7
 synopsis:             GStreamer bindings
 description:          Bindings for GStreamer, 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: Gst.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 Gst.overrides
 
 Flag overloaded-methods
       Description: Generate support for overloaded methods.
@@ -35,7 +30,8 @@
 
       pkgconfig-depends: gstreamer-1.0
       build-depends: base >= 4.8 && <5,
-                     haskell-gi-base >= 0.18 && < 1,
+                     haskell-gi-base >= 0.20 && < 1,
+                     haskell-gi >= 0.20 && < 1,
                      gi-gobject == 2.0.*,
                      gi-glib == 2.0.*,
                      bytestring >= 0.10 && < 1,
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
