@@ -38,28 +38,14 @@ self: super: {
3838 prePatch = "sed -i 's/-Werror//g' linear.cabal";
3939 });
4040
41− # Cabal_1_22_1_1 requires filepath >=1 && <1.4
41+ # Our core version of Cabal is good enough for this build.
4242 cabal-install = dontCheck (super.cabal-install.override { Cabal = null; });
4343
44− # Don't compile jailbreak-cabal with Cabal 1.22.x because of https://github.com/peti/jailbreak-cabal/issues/9.
45− Cabal_1_23_0_0 = overrideCabal super.Cabal_1_22_4_0 (drv: {
46− version = "1.23.0.0";
47− src = pkgs.fetchFromGitHub {
48− owner = "haskell";
49− repo = "cabal";
50− rev = "fe7b8784ac0a5848974066bdab76ce376ba67277";
51− sha256 = "1d70ryz1l49pkr70g8r9ysqyg1rnx84wwzx8hsg6vwnmg0l5am7s";
52− };
53− jailbreak = false;
54− doHaddock = false;
55− postUnpack = "sourceRoot+=/Cabal";
56− });
57− jailbreak-cabal = super.jailbreak-cabal.override {
58− Cabal = self.Cabal_1_23_0_0;
59− mkDerivation = drv: self.mkDerivation (drv // {
60− preConfigure = "sed -i -e 's/Cabal == 1.20\\.\\*/Cabal >= 1.23/' jailbreak-cabal.cabal";
61− });
62− };
44+ # Jailbreaking is required for the test suite only (which we don't run).
45+ Cabal_1_24_0_0 = dontJailbreak (dontCheck super.Cabal_1_24_0_0);
46+
47+ # Build jailbreak-cabal with the latest version of Cabal.
48+ jailbreak-cabal = super.jailbreak-cabal.override { Cabal = self.Cabal_1_24_0_0; };
6349
6450 idris = overrideCabal super.idris (drv: {
6551 # "idris" binary cannot find Idris library otherwise while building.