diff --git a/ChangeLog.md b/ChangeLog.md
new file mode 100644
--- /dev/null
+++ b/ChangeLog.md
@@ -0,0 +1,1 @@
+__1.4.0.7__ Fix a bug in `yesod devel` when cabal config has `tests: True` #864
diff --git a/Devel.hs b/Devel.hs
--- a/Devel.hs
+++ b/Devel.hs
@@ -300,6 +300,8 @@
   checkExit =<< createProcess (proc (cabalProgram opts) $
                                  [ "configure"
                                  , "-flibrary-only"
+                                 , "--disable-tests"
+                                 , "--disable-benchmarks"
                                  , "-fdevel"
                                  , "--disable-library-profiling"
                                  , "--with-ld=yesod-ld-wrapper"
diff --git a/yesod-bin.cabal b/yesod-bin.cabal
--- a/yesod-bin.cabal
+++ b/yesod-bin.cabal
@@ -1,5 +1,5 @@
 name:            yesod-bin
-version:         1.4.0.6
+version:         1.4.0.7
 license:         MIT
 license-file:    LICENSE
 author:          Michael Snoyman <michael@snoyman.com>
@@ -21,6 +21,7 @@
   hsfiles/postgres-fay.hsfiles
   hsfiles/simple.hsfiles
   hsfiles/sqlite.hsfiles
+  ChangeLog.md
 
 executable             yesod-ghc-wrapper
     main-is: ghcwrapper.hs
