haskell.packages.ghc8107: pick correct versions of GHC-specific pkgs
Extra acrobatics are required for ghc-bignum which has been removed from hackage-packages.nix, since it is bundled with GHC starting with 9.0.2.
This commit is contained in:
parent
cd67b4fcbb
commit
7b1e2a2277
|
@ -1758,24 +1758,28 @@ self: super: {
|
|||
# May be possible to remove at the next release (1.11.0)
|
||||
taskell = doJailbreak super.taskell;
|
||||
|
||||
# ghc-bignum is not buildable if none of the three backends
|
||||
# is explicitly enabled. We enable Native for now as it doesn't
|
||||
# depend on anything else as oppossed to GMP and FFI.
|
||||
# Apply patch which fixes a compilation failure we encountered.
|
||||
# Can be removed if the following issue is resolved / the patch
|
||||
# is merged and released:
|
||||
# * https://gitlab.haskell.org/ghc/ghc/-/issues/19638
|
||||
# * https://gitlab.haskell.org/ghc/ghc/-/merge_requests/5454
|
||||
ghc-bignum = overrideCabal (old: {
|
||||
configureFlags = (old.configureFlags or []) ++ [ "-f" "Native" ];
|
||||
patches = (old.patches or []) ++ [
|
||||
# Polyfill for GHCs from the integer-simple days that don't bundle ghc-bignum
|
||||
ghc-bignum = super.ghc-bignum or self.mkDerivation {
|
||||
pname = "ghc-bignum";
|
||||
version = "1.0";
|
||||
sha256 = "0xl848q8z6qx2bi6xil0d35lra7wshwvysyfblki659d7272b1im";
|
||||
description = "GHC BigNum library";
|
||||
license = pkgs.lib.licenses.bsd3;
|
||||
# ghc-bignum is not buildable if none of the three backends
|
||||
# is explicitly enabled. We enable Native for now as it doesn't
|
||||
# depend on anything else as oppossed to GMP and FFI.
|
||||
# Apply patch which fixes a compilation failure we encountered.
|
||||
# Will need to be kept until we can drop ghc-bignum entirely,
|
||||
# i. e. if GHC 8.10.* and 8.8.* have been removed.
|
||||
configureFlags = [ "-f" "Native" ];
|
||||
patches = [
|
||||
(pkgs.fetchpatch {
|
||||
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/08d1588bf38d83140a86817a7a615db486357d4f.patch";
|
||||
sha256 = "1qx4r031y72px291vz38bng9sb23r8zb35s03v5hhawlmgzfzcb5";
|
||||
stripLen = 2;
|
||||
})
|
||||
];
|
||||
}) super.ghc-bignum;
|
||||
};
|
||||
|
||||
# 2021-04-09: outdated base and alex-tools
|
||||
# PR pending https://github.com/glguy/language-lua/pull/6
|
||||
|
|
|
@ -49,6 +49,12 @@ self: super: {
|
|||
# cabal-install-parsers is written for Cabal 3.6
|
||||
cabal-install-parsers = super.cabal-install-parsers.override { Cabal = super.Cabal_3_6_2_0; };
|
||||
|
||||
# Pick right versions for GHC-specific packages
|
||||
ghc-api-compat = doDistribute self.ghc-api-compat_8_10_7;
|
||||
ghc-lib = doDistribute self.ghc-lib_8_10_7_20210828;
|
||||
ghc-lib-parser = doDistribute self.ghc-lib-parser_8_10_7_20210828;
|
||||
ghc-lib-parser-ex = doDistribute self.ghc-lib-parser-ex_8_10_0_23;
|
||||
|
||||
# Jailbreak to fix the build.
|
||||
base-noprelude = doJailbreak super.base-noprelude;
|
||||
system-fileio = doJailbreak super.system-fileio;
|
||||
|
|
Loading…
Reference in a new issue