about summary refs log tree commit diff
path: root/pkgs/development/tools/haskell/hadrian/hadrian.nix
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2024-02-26 17:16:15 +0100
committersternenseemann <sternenseemann@systemli.org>2024-02-26 17:19:02 +0100
commit2d02d0d463358f591657d8b9904f4adfe9c69d2f (patch)
tree6b7d5f8d1da5108066c40d85936ce84c860220a0 /pkgs/development/tools/haskell/hadrian/hadrian.nix
parent4eb8d82934810c8ac35a05c3f0d5298fcf85d585 (diff)
haskell.compiler.ghc982: fix bootstrap with GHC 9.6
Bootsrapping with 9.6 doesn't work with 9.8.2 upstream due to erroneous
bounds on Cabal (<https://gitlab.haskell.org/ghc/ghc/-/issues/24100>)
which was planned to be addressed in 9.8.2, but apparently hasn't been,
so we need to extend the range for the workaround patch.
Diffstat (limited to 'pkgs/development/tools/haskell/hadrian/hadrian.nix')
-rw-r--r--pkgs/development/tools/haskell/hadrian/hadrian.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/tools/haskell/hadrian/hadrian.nix b/pkgs/development/tools/haskell/hadrian/hadrian.nix
index 2fda57ac1aebb..7a44e2eeffc29 100644
--- a/pkgs/development/tools/haskell/hadrian/hadrian.nix
+++ b/pkgs/development/tools/haskell/hadrian/hadrian.nix
@@ -23,7 +23,7 @@ mkDerivation {
   '';
   patches = lib.optionals (!enableHyperlinkedSource) [
     ./disable-hyperlinked-source.patch
-  ] ++ lib.optionals (ghcVersion == "9.8.1") [
+  ] ++ lib.optionals (lib.elem ghcVersion [ "9.8.1" "9.8.2" ]) [
     # Incorrect bounds on Cabal
     # https://gitlab.haskell.org/ghc/ghc/-/issues/24100
     ./hadrian-9.8.1-allow-Cabal-3.10.patch