cabal-install: jailbreak version 1.20.0.3 to fix build with latest version of 'random' and override 'network' to the old 2.5 version

This commit is contained in:
Peter Simons 2014-10-13 15:26:00 +02:00
parent 2cf6ea93fa
commit 919da91d13
2 changed files with 7 additions and 1 deletions

View File

@ -22,6 +22,9 @@ cabal.mkDerivation (self: {
mkdir $out/etc
mv bash-completion $out/etc/bash_completion.d
'';
patchPhase = ''
sed -i -e 's|random .*1.1,|random,|' cabal-install.cabal
'';
meta = {
homepage = "http://www.haskell.org/cabal/";
description = "The command-line interface for Cabal and Hackage";

View File

@ -3143,7 +3143,10 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in
cabalInstall_0_14_0 = callPackage ../tools/package-management/cabal-install/0.14.0.nix {};
cabalInstall_1_16_0_2 = callPackage ../tools/package-management/cabal-install/1.16.0.2.nix { Cabal = self.Cabal_1_16_0_3; };
cabalInstall_1_18_0_3 = callPackage ../tools/package-management/cabal-install/1.18.0.3.nix { Cabal = self.Cabal_1_18_1_3; };
cabalInstall_1_20_0_3 = callPackage ../tools/package-management/cabal-install/1.20.0.3.nix { Cabal = self.Cabal_1_20_0_2; };
cabalInstall_1_20_0_3 = callPackage ../tools/package-management/cabal-install/1.20.0.3.nix {
HTTP = self.HTTP.override { network = self.network_2_5_0_0; };
Cabal = self.Cabal_1_20_0_2;
};
cabalInstall = self.cabalInstall_1_20_0_3;
codex = callPackage ../development/tools/haskell/codex {};