diff --git a/gi-soup.cabal b/gi-soup.cabal
--- a/gi-soup.cabal
+++ b/gi-soup.cabal
@@ -1,5 +1,5 @@
 name:                 gi-soup
-version:              2.4.8
+version:              2.4.9
 synopsis:             Libsoup bindings
 description:          Bindings for Libsoup, autogenerated by haskell-gi.
 homepage:             https://github.com/haskell-gi/haskell-gi
@@ -9,10 +9,15 @@
 maintainer:           Iñaki García Etxebarria (garetxe@gmail.com)
 category:             Bindings
 build-type:           Custom
-cabal-version:        >= 1.22
+cabal-version:        >= 1.24
 
-extra-source-files: stack.yaml Soup.overrides
+extra-source-files: Soup.overrides
 
+custom-setup
+      setup-depends: base >= 4.7 && < 5,
+                     Cabal >= 1.24,
+                     haskell-gi >= 0.20 && < 1
+
 Flag overloaded-methods
       Description: Generate support for overloaded methods.
 
@@ -31,7 +36,6 @@
       pkgconfig-depends: libsoup-2.4
       build-depends: base >= 4.7 && <5,
                      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
deleted file mode 100644
--- a/stack.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
-packages:
-- '.'
-explicit-setup-deps:
-  ! '*': true
-resolver: nightly-2016-12-05
