lol
1{ pkgs, haskellLib }:
2
3with haskellLib;
4
5self: super: {
6
7 # Use the latest LLVM.
8 inherit (pkgs) llvmPackages;
9
10 # Disable GHC 7.11.x core libraries.
11 array = null;
12 base = null;
13 binary = null;
14 bin-package-db = null;
15 bytestring = null;
16 Cabal = null;
17 containers = null;
18 deepseq = null;
19 directory = null;
20 filepath = null;
21 ghc-prim = null;
22 ghci = null;
23 haskeline = null;
24 hoopl = null;
25 hpc = null;
26 integer-gmp = null;
27 pretty = null;
28 process = null;
29 rts = null;
30 template-haskell = null;
31 terminfo = null;
32 time = null;
33 transformers = null;
34 unix = null;
35 xhtml = null;
36
37 # jailbreak-cabal can use the native Cabal library.
38 jailbreak-cabal = super.jailbreak-cabal.override { Cabal = null; };
39
40 # haddock: No input file(s).
41 nats = dontHaddock super.nats;
42 bytestring-builder = dontHaddock super.bytestring-builder;
43
44 # We have time 1.5
45 aeson = disableCabalFlag super.aeson "old-locale";
46
47 # Show works differently for record syntax now, breaking haskell-src-exts' parser tests
48 # https://github.com/haskell-suite/haskell-src-exts/issues/224
49 haskell-src-exts = dontCheck super.haskell-src-exts;
50
51 # Setup: At least the following dependencies are missing: base <4.8
52 hspec-expectations = overrideCabal super.hspec-expectations (drv: {
53 postPatch = "sed -i -e 's|base < 4.8|base|' hspec-expectations.cabal";
54 });
55 utf8-string = overrideCabal super.utf8-string (drv: {
56 postPatch = "sed -i -e 's|base >= 4.3 && < 4.10|base|' utf8-string.cabal";
57 });
58
59 # bos/attoparsec#92
60 attoparsec = dontCheck super.attoparsec;
61
62 # test suite hangs silently for at least 10 minutes
63 split = dontCheck super.split;
64
65 # Test suite fails with some (seemingly harmless) error.
66 # https://code.google.com/p/scrapyourboilerplate/issues/detail?id=24
67 syb = dontCheck super.syb;
68
69 # Test suite has stricter version bounds
70 retry = dontCheck super.retry;
71
72 # Test suite fails with time >= 1.5
73 http-date = dontCheck super.http-date;
74
75 # Version 1.19.5 fails its test suite.
76 happy = dontCheck super.happy;
77
78 # Workaround for a workaround, see comment for "ghcjs" flag.
79 jsaddle = let jsaddle' = disableCabalFlag super.jsaddle "ghcjs";
80 in addBuildDepends jsaddle' [ self.glib self.gtk3 self.webkitgtk3
81 self.webkitgtk3-javascriptcore ];
82
83 # The compat library is empty in the presence of mtl 2.2.x.
84 mtl-compat = dontHaddock super.mtl-compat;
85
86 # Won't work with LLVM 3.5.
87 llvm-general = markBrokenVersion "3.4.5.3" super.llvm-general;
88
89 # A bunch of jailbreaks due to 'base' bump
90 old-time = doJailbreak super.old-time;
91 old-locale = doJailbreak super.old-locale;
92 primitive = doJailbreak super.primitive;
93 test-framework = doJailbreak super.test-framework;
94 atomic-primops = doJailbreak (appendPatch super.atomic-primops ./patches/atomic-primops-Cabal-1.25.patch);
95 hashable = doJailbreak super.hashable;
96 stm = doJailbreak super.stm;
97}