aboutsummaryrefslogtreecommitdiff
path: root/desktop/xmonad/xmonad_cabal.patch
blob: 599fbcb3c2edff4a5b83b1843e033914a7dc4960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- xmonad.cabal.orig	2012-05-16 01:04:06.426000004 +0300
+++ xmonad.cabal	2012-05-16 01:04:39.336999960 +0300
@@ -32,6 +32,10 @@
     description: Testing mode, only build minimal components
     default: False
 
+flag threaded
+    description: Use threaded runtime for xmonad binary
+    default: False
+
 library
     exposed-modules:    XMonad
                         XMonad.Main
@@ -46,7 +54,7 @@
         build-depends: base < 5 && >=3, containers, directory, process, filepath, extensible-exceptions
     else
         build-depends: base < 3
-    build-depends: X11>=1.5.0.0 && < 1.6, mtl, unix,
+    build-depends: X11>=1.5.0.0 && < 1.7, mtl, unix,
                    utf8-string >= 0.3 && < 0.4
 
     if true
@@ -88,3 +96,5 @@
         ghc-options:    -Werror
     if flag(testing) && flag(small_base)
         build-depends:  filepath, process, directory, mtl, unix, X11, base, containers, random, extensible-exceptions
+    if flag(threaded)
+        ghc-options:    -threaded