diff --git a/hoogle.cabal b/hoogle.cabal
--- a/hoogle.cabal
+++ b/hoogle.cabal
@@ -1,7 +1,7 @@
 cabal-version:      >= 1.10
 build-type:         Simple
 name:               hoogle
-version:            4.2.19
+version:            4.2.20
 license:            BSD3
 license-file:       docs/LICENSE
 category:           Development
@@ -117,8 +117,8 @@
 
     build-depends:
         base > 4 && < 5,
-        hoogle, bytestring, filepath, unix, directory, process, random,
-        array, containers, time, old-time, old-locale,
+        bytestring, filepath, directory, process, random,
+        array, containers, time, old-locale,
         safe,
         aeson >= 0.6.1,
         cmdargs >= 0.7,
@@ -136,6 +136,9 @@
         warp >= 1.1,
         Cabal >= 1.8,
         haskell-src-exts >= 1.14 && < 1.15
+
+    if !os(mingw32)
+        build-depends: unix
 
     other-modules:
         CmdLine.All
