@@ -3,6 +3,10 @@
33with import ./lib.nix { inherit pkgs; };
44
55self: super: {
6+
7+ # Suitable LLVM version.
8+ llvmPackages = pkgs.llvmPackages_35;
9+
610 # Disable GHC 8.0.x core libraries.
711 array = null;
812 base = null;
@@ -30,25 +34,18 @@ self: super: {
3034 unix = null;
3135 xhtml = null;
3236
33− Cabal_1_23_0_0 = overrideCabal super.Cabal_1_22_4_0 (drv: {
34− version = "1.23.0.0";
35− src = pkgs.fetchFromGitHub {
36− owner = "haskell";
37− repo = "cabal";
38− rev = "18fcd9c1aaeddd9d10a25e44c0e986c9889f06a7";
39− sha256 = "1bakw7h5qadjhqbkmwijg3588mjnpvdhrn8lqg8wq485cfcv6vn3";
40− };
41− jailbreak = false;
42− doHaddock = false;
43− postUnpack = "sourceRoot+=/Cabal";
44− postPatch = ''
45− setupCompileFlags+=" -DMIN_VERSION_binary_0_8_0=1"
46− '';
47− });
37+ # jailbreak-cabal can use the native Cabal library.
4838 jailbreak-cabal = super.jailbreak-cabal.override {
49− Cabal = self.Cabal_1_23_0_0;
39+ Cabal = null;
5040 mkDerivation = drv: self.mkDerivation (drv // {
5141 preConfigure = "sed -i -e 's/Cabal == 1.20\\.\\*/Cabal >= 1.23/' jailbreak-cabal.cabal";
5242 });
5343 };
44+
45+ # Older versions of QuickCheck don't support our version of Template Haskell.
46+ QuickCheck = self.QuickCheck_2_8_2;
47+
48+ # https://github.com/hspec/HUnit/issues/7
49+ HUnit = dontCheck super.HUnit;
50+
5451}