diff --git a/gi-notify.cabal b/gi-notify.cabal
--- a/gi-notify.cabal
+++ b/gi-notify.cabal
@@ -1,5 +1,5 @@
 name:                 gi-notify
-version:              0.7.8
+version:              0.7.9
 synopsis:             Libnotify bindings
 description:          Bindings for Libnotify, 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 Notify.overrides
+extra-source-files: Notify.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: libnotify >= 0.7 && < 1
       build-depends: base >= 4.7 && <5,
                      haskell-gi-base >= 0.20 && < 1,
-                     haskell-gi >= 0.20 && < 1,
                      gi-gdkpixbuf == 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
