haskell-ng: fix old Cabal builds

This commit is contained in:
Peter Simons 2015-01-11 13:22:56 +01:00
parent 78d8c67fa3
commit 921bb64a6d
2 changed files with 27 additions and 0 deletions

View file

@ -5,6 +5,8 @@ with import ./lib.nix { inherit pkgs; };
self: super: {
# Some packages need a non-core version of Cabal.
Cabal_1_18_1_6 = doJailbreak (dontCheck super.Cabal_1_18_1_6);
Cabal_1_20_0_3 = doJailbreak (dontCheck super.Cabal_1_20_0_3);
Cabal_1_22_0_0 = dontCheck super.Cabal_1_22_0_0;
cabal-install = dontCheck (super.cabal-install.override { Cabal = self.Cabal_1_22_0_0; });

View file

@ -1865,6 +1865,31 @@ self: {
opencv_legacy = null; opencv_ml = null; opencv_objdetect = null;
opencv_video = null; };
"Cabal_1_18_1_6" = callPackage
({ mkDerivation, array, base, bytestring, containers, deepseq
, directory, extensible-exceptions, filepath, HUnit, pretty
, process, QuickCheck, regex-posix, test-framework
, test-framework-hunit, test-framework-quickcheck2, time, unix
}:
mkDerivation {
pname = "Cabal";
version = "1.18.1.6";
sha256 = "15nn6f8bnqzy7pqxb45hdf30qid2hw608dcqgmwrcfrd8zrrvylw";
buildDepends = [
array base bytestring containers deepseq directory filepath pretty
process time unix
];
testDepends = [
base bytestring directory extensible-exceptions filepath HUnit
process QuickCheck regex-posix test-framework test-framework-hunit
test-framework-quickcheck2 unix
];
preCheck = "unset GHC_PACKAGE_PATH; export HOME=$NIX_BUILD_TOP";
homepage = "http://www.haskell.org/cabal/";
description = "A framework for packaging Haskell software";
license = stdenv.lib.licenses.bsd3;
}) {};
"Cabal_1_20_0_3" = callPackage
({ mkDerivation, array, base, bytestring, containers, deepseq
, directory, extensible-exceptions, filepath, HUnit, pretty