diff options
author | sternenseemann <sternenseemann@systemli.org> | 2023-07-01 13:10:07 +0200 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2023-07-01 13:17:43 +0200 |
commit | 4c2f247e11fb36c7b4c8603e9fc8f3f195d10fe2 (patch) | |
tree | fe687c5d95c21b6f538840d8a6639a191ce50fc7 /pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix | |
parent | 20d2845ce61035c89270dd155fd0892c481a4234 (diff) | |
download | nixlib-4c2f247e11fb36c7b4c8603e9fc8f3f195d10fe2.tar nixlib-4c2f247e11fb36c7b4c8603e9fc8f3f195d10fe2.tar.gz nixlib-4c2f247e11fb36c7b4c8603e9fc8f3f195d10fe2.tar.bz2 nixlib-4c2f247e11fb36c7b4c8603e9fc8f3f195d10fe2.tar.lz nixlib-4c2f247e11fb36c7b4c8603e9fc8f3f195d10fe2.tar.xz nixlib-4c2f247e11fb36c7b4c8603e9fc8f3f195d10fe2.tar.zst nixlib-4c2f247e11fb36c7b4c8603e9fc8f3f195d10fe2.zip |
haskell.packages.*.Cabal-syntax: expose dummy packages for GHC < 9.4
Before Cabal >= 3.8, Cabal-syntax did not exist, but there is a dummy package Cabal-syntax-3.6.0.0 which can be used to prevent the constraint solver from picking mutually incompatible versions of Cabal and Cabal-syntax. Since we are now solving flags with Cabal >= 3.8, many packages have a dependency on Cabal-syntax they did not have before, requiring us to have a matching attribute in every package set. Using the dummy package is the safest solution, although it is not required in every case. Fixes eval of jailbreak-cabal for GHC < 9.4.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix index 01cb34881516..50590ee1867e 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix @@ -47,6 +47,9 @@ self: super: { # 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_2_2_1; + # Need the Cabal-syntax-3.6.0.0 fake package for Cabal < 3.8 to allow callPackage and the constraint solver to work + Cabal-syntax = self.Cabal-syntax_3_6_0_0; + # GHC 8.8.x can build haddock version 2.23.* haddock = self.haddock_2_23_1; haddock-api = self.haddock-api_2_23_1; |