diff --git a/gi-javascriptcore.cabal b/gi-javascriptcore.cabal
--- a/gi-javascriptcore.cabal
+++ b/gi-javascriptcore.cabal
@@ -1,5 +1,5 @@
 name:                 gi-javascriptcore
-version:              3.0.6
+version:              3.0.7
 synopsis:             JavaScriptCore bindings
 description:          Bindings for JavaScriptCore, autogenerated by haskell-gi.
 homepage:             https://github.com/haskell-gi/haskell-gi
@@ -9,12 +9,9 @@
 maintainer:           Iñaki García Etxebarria (garetxe@gmail.com)
 category:             Bindings
 build-type:           Custom
-cabal-version:        >= 1.24
+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
 
 Flag overloaded-methods
       Description: Generate support for overloaded methods.
@@ -33,7 +30,8 @@
 
       pkgconfig-depends: javascriptcoregtk-3.0
       build-depends: base >= 4.7 && <5,
-                     haskell-gi-base >= 0.18 && < 1,
+                     haskell-gi-base >= 0.20 && < 1,
+                     haskell-gi >= 0.20 && < 1,
                      bytestring >= 0.10 && < 1,
                      containers >= 0.5 && < 1,
                      text >= 1.0 && < 2,
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
