@@ -0,0 +1,104 @@
1+{ pkgs }:
2+
3+with import ./lib.nix { inherit pkgs; };
4+
5+self: 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+ haskeline = null;
23+ hoopl = null;
24+ hpc = null;
25+ integer-gmp = null;
26+ pretty = null;
27+ process = null;
28+ rts = null;
29+ template-haskell = null;
30+ terminfo = null;
31+ time = null;
32+ transformers = null;
33+ unix = null;
34+ xhtml = null;
35+
36+ # Don't use jailbreak built with Cabal 1.22.x because of https://github.com/peti/jailbreak-cabal/issues/9.
37+ jailbreak-cabal = pkgs.haskell.packages.ghc784.jailbreak-cabal;
38+
39+ # GHC 7.10.x's Haddock binary cannot generate hoogle files.
40+ # https://ghc.haskell.org/trac/ghc/ticket/9921
41+ mkDerivation = drv: super.mkDerivation (drv // { doHoogle = false; doHaddock = false; });
42+
43+ # haddock: No input file(s).
44+ nats = dontHaddock super.nats;
45+ bytestring-builder = dontHaddock super.bytestring-builder;
46+
47+ alex = dontCheck super.alex;
48+
49+ # We have time 1.5
50+ aeson = disableCabalFlag super.aeson "old-locale";
51+
52+ # Show works differently for record syntax now, breaking haskell-src-exts' parser tests
53+ # https://github.com/haskell-suite/haskell-src-exts/issues/224
54+ haskell-src-exts = dontCheck super.haskell-src-exts;
55+
56+ mono-traversable = appendPatch super.mono-traversable (pkgs.fetchpatch {
57+ url = "https://github.com/snoyberg/mono-traversable/pull/77.patch";
58+ sha256 = "1qrvrh3cqfkymi5yb9y9z88rq4n7ag0ac2k00mcnqh4dz1vh4fg1";
59+ });
60+ yesod-auth = appendPatch super.yesod-auth (pkgs.fetchpatch {
61+ url = "https://github.com/yesodweb/yesod/pull/1006.patch";
62+ sha256 = "0l6wjj8cfz6jy6j92kywsccafyffhlm5240q82bzirb278adqvar";
63+ stripLen = 1;
64+ });
65+
66+ # Setup: At least the following dependencies are missing: base <4.8
67+ hspec-expectations = overrideCabal super.hspec-expectations (drv: {
68+ patchPhase = "sed -i -e 's|base < 4.8|base|' hspec-expectations.cabal";
69+ });
70+ utf8-string = overrideCabal super.utf8-string (drv: {
71+ patchPhase = "sed -i -e 's|base >= 3 && < 4.8|base|' utf8-string.cabal";
72+ });
73+
74+ # bos/attoparsec#92
75+ attoparsec = dontCheck super.attoparsec;
76+
77+ # test suite hangs silently for at least 10 minutes
78+ split = dontCheck super.split;
79+
80+ # Test suite fails with some (seemingly harmless) error.
81+ # https://code.google.com/p/scrapyourboilerplate/issues/detail?id=24
82+ syb = dontCheck super.syb;
83+
84+ # Test suite has stricter version bounds
85+ retry = dontCheck super.retry;
86+
87+ # Test suite fails with time >= 1.5
88+ http-date = dontCheck super.http-date;
89+
90+ # Version 1.19.5 fails its test suite.
91+ happy = dontCheck super.happy;
92+
93+ # Workaround for a workaround, see comment for "ghcjs" flag.
94+ jsaddle = let jsaddle' = disableCabalFlag super.jsaddle "ghcjs";
95+ in addBuildDepends jsaddle' [ self.glib self.gtk3 self.webkitgtk3
96+ self.webkitgtk3-javascriptcore ];
97+
98+ # The compat library is empty in the presence of mtl 2.2.x.
99+ mtl-compat = dontHaddock super.mtl-compat;
100+
101+ # Won't work with LLVM 3.5.
102+ llvm-general = markBrokenVersion "3.4.5.3" super.llvm-general;
103+
104+}