haskell.packages.*.ghc-source-gen: shuffle broken flags around

ghc-source-gen being broken is the norm now, as it only supports
GHC < 9.4. To keep tabs on it still (it is required for HLS some of the
time), we add it to release-haskell.nix.
This commit is contained in:
sternenseemann 2023-07-25 13:01:20 +02:00
parent 277bf961c3
commit 0b4156230b
8 changed files with 23 additions and 4 deletions

View file

@ -193,4 +193,7 @@ self: super: {
# Needs OneTuple for ghc < 9.2
binary-orphans = addBuildDepends [ self.OneTuple ] super.binary-orphans;
# Requires GHC < 9.4
ghc-source-gen = doDistribute (unmarkBroken super.ghc-source-gen);
}

View file

@ -180,4 +180,7 @@ self: super: {
# Later versions only support GHC >= 9.2
ghc-exactprint = self.ghc-exactprint_0_6_4;
apply-refact = self.apply-refact_0_9_3_0;
# Requires GHC < 9.4
ghc-source-gen = doDistribute (unmarkBroken super.ghc-source-gen);
}

View file

@ -152,4 +152,7 @@ self: super: {
# Needs OneTuple for ghc < 9.2
binary-orphans = addBuildDepends [ self.OneTuple ] super.binary-orphans;
# Requires GHC < 9.4
ghc-source-gen = doDistribute (unmarkBroken super.ghc-source-gen);
}

View file

@ -109,4 +109,7 @@ self: super: {
# A given major version of ghc-exactprint only supports one version of GHC.
ghc-exactprint = super.ghc-exactprint_1_5_0;
# Requires GHC < 9.4
ghc-source-gen = doDistribute (unmarkBroken super.ghc-source-gen);
}

View file

@ -55,10 +55,6 @@ in {
# still the case when updating: https://gitlab.haskell.org/ghc/ghc/-/blob/0198841877f6f04269d6050892b98b5c3807ce4c/ghc.mk#L463
xhtml = if self.ghc.hasHaddock or true then null else self.xhtml_3000_3_0_0;
# consequences of doctest breakage follow:
ghc-source-gen = checkAgainAfter super.ghc-source-gen "0.4.3.0" "fails to build" (markBroken super.ghc-source-gen);
# Jailbreaks & Version Updates
hashable-time = doJailbreak super.hashable-time;

View file

@ -1781,6 +1781,7 @@ broken-packages:
- ghc-plugs-out
- ghc-proofs
- ghc-simple
- ghc-source-gen
- ghc-srcspan-plugin
- ghc-syb
- ghc-syb-utils

View file

@ -112497,6 +112497,8 @@ self: {
];
description = "Constructs Haskell syntax trees for the GHC API";
license = lib.licenses.bsd3;
hydraPlatforms = lib.platforms.none;
broken = true;
}) {};
"ghc-srcspan-plugin" = callPackage

View file

@ -516,6 +516,14 @@ let
ghc-lib = released;
ghc-lib-parser = released;
ghc-lib-parser-ex = released;
ghc-source-gen = [
# Feel free to remove these as they break,
# ghc-source-gen currently doesn't support GHC 9.4
compilerNames.ghc884
compilerNames.ghc8107
compilerNames.ghc902
compilerNames.ghc928
];
ghc-tags = [
compilerNames.ghc8107
compilerNames.ghc902