mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
haskellPackages.cabal-install: Switch Cabal back to 3.4 on older ghcs
This commit is contained in:
parent
aeb4364bb3
commit
1445bec521
@ -44,12 +44,12 @@ self: super: {
|
||||
|
||||
# cabal-install needs more recent versions of Cabal and base16-bytestring.
|
||||
cabal-install = super.cabal-install.overrideScope (self: super: {
|
||||
Cabal = self.Cabal_3_6_0_0;
|
||||
Cabal = self.Cabal_3_4_0_0;
|
||||
base16-bytestring = self.base16-bytestring_0_1_1_7;
|
||||
});
|
||||
|
||||
# cabal-install-parsers is written for Cabal 3.4
|
||||
cabal-install-parsers = super.cabal-install-parsers.override { Cabal = super.Cabal_3_6_0_0; };
|
||||
cabal-install-parsers = super.cabal-install-parsers.override { Cabal = super.Cabal_3_4_0_0; };
|
||||
|
||||
# Jailbreak to fix the build.
|
||||
base-noprelude = doJailbreak super.base-noprelude;
|
||||
|
@ -58,7 +58,7 @@ self: super: {
|
||||
# cabal-install needs more recent versions of Cabal and random, but an older
|
||||
# version of base16-bytestring.
|
||||
cabal-install = super.cabal-install.overrideScope (self: super: {
|
||||
Cabal = self.Cabal_3_6_0_0;
|
||||
Cabal = self.Cabal_3_4_0_0;
|
||||
base16-bytestring = self.base16-bytestring_0_1_1_7;
|
||||
});
|
||||
|
||||
|
@ -97,6 +97,7 @@ extra-packages:
|
||||
- Cabal == 2.2.* # required for jailbreak-cabal etc.
|
||||
- Cabal == 2.4.* # required for cabal-install etc.
|
||||
- Cabal == 3.2.* # required for cabal-install etc.
|
||||
- Cabal == 3.4.* # required for cabal-install etc.
|
||||
- dependent-map == 0.2.4.0 # required by Hasura 1.3.1, 2020-08-20
|
||||
- dependent-sum == 0.4 # required by Hasura 1.3.1, 2020-08-20
|
||||
- dhall == 1.29.0 # required for ats-pkg
|
||||
|
@ -2732,6 +2732,36 @@ self: {
|
||||
hydraPlatforms = lib.platforms.none;
|
||||
}) {};
|
||||
|
||||
"Cabal_3_4_0_0" = callPackage
|
||||
({ mkDerivation, array, async, base, base-compat, base-orphans
|
||||
, binary, bytestring, clock, containers, deepseq, Diff, directory
|
||||
, filepath, integer-logarithms, mtl, optparse-applicative, parsec
|
||||
, pretty, process, QuickCheck, rere, stm, tagged, tar, tasty
|
||||
, tasty-golden, tasty-hunit, tasty-quickcheck, temporary, text
|
||||
, time, transformers, tree-diff, unix
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "Cabal";
|
||||
version = "3.4.0.0";
|
||||
sha256 = "1za1cl14fkw8y89hhw6sqirzmkixjaa4wpqsibyk0fvnjs59jydq";
|
||||
setupHaskellDepends = [ mtl parsec ];
|
||||
libraryHaskellDepends = [
|
||||
array base binary bytestring containers deepseq directory filepath
|
||||
mtl parsec pretty process text time transformers unix
|
||||
];
|
||||
testHaskellDepends = [
|
||||
array async base base-compat base-orphans binary bytestring clock
|
||||
containers deepseq Diff directory filepath integer-logarithms
|
||||
optparse-applicative pretty process QuickCheck rere stm tagged tar
|
||||
tasty tasty-golden tasty-hunit tasty-quickcheck temporary text
|
||||
transformers tree-diff
|
||||
];
|
||||
doCheck = false;
|
||||
description = "A framework for packaging Haskell software";
|
||||
license = lib.licenses.bsd3;
|
||||
hydraPlatforms = lib.platforms.none;
|
||||
}) {};
|
||||
|
||||
"Cabal_3_6_0_0" = callPackage
|
||||
({ mkDerivation, array, base, binary, bytestring, containers
|
||||
, deepseq, directory, filepath, mtl, parsec, pretty, process, text
|
||||
|
Loading…
Reference in New Issue
Block a user