diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index c9e44a1c6b7b..44a958295a13 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1926,9 +1926,6 @@ EOT Cabal = self.Cabal_3_6_0_0; }; - # ghc-api-compat needlessly requires 8.10.5 exactly, but we have 8.10.6 - ghc-api-compat = doJailbreak super.ghc-api-compat; - # 2021-08-18: streamly-posix was released with hspec 2.8.2, but it works with older versions too. streamly-posix = doJailbreak super.streamly-posix; 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 bb530b765b49..bb8a1ce29711 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix @@ -129,5 +129,5 @@ self: super: { # vector 0.12.2 indroduced doctest checks that don‘t work on older compilers vector = dontCheck super.vector; - ghc-api-compat = super.ghc-api-compat_8_6; + ghc-api-compat = doDistribute super.ghc-api-compat_8_6; } diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix index 20c64dbbccf9..ec151f55d308 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix @@ -112,4 +112,7 @@ self: super: { }; ghc-lib-parser-ex = self.ghc-lib-parser-ex_9_0_0_4; }); + + # pick right version for compiler + ghc-api-compat = doDistribute super.ghc-api-compat_9_0_1; } diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml index 6e77dc353923..022e8f74f233 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml @@ -94,6 +94,8 @@ default-package-overrides: - dhall-nix < 1.1.22 # reflex-dom-pandoc is only used by neuron which needs a version < 1.0.0.0 - reflex-dom-pandoc < 1.0.0.0 + # 2021-09-07: pin to our current GHC version + - ghc-api-compat == 8.10.7 extra-packages: - base16-bytestring < 1 # required for cabal-install etc. @@ -122,7 +124,7 @@ extra-packages: - crackNum < 3.0 # 2021-05-21: 3.0 removed the lib which sbv 7.13 uses - ShellCheck == 0.7.1 # 2021-05-09: haskell-ci 0.12.1 pins this version - cabal-install-parsers == 0.4.2 # 2021-09-04: needed haskell-ci by until it upgrades to Cabal >= 3.6 - - ghc-api-compat < 8.10.5 # 2021-08-18: ghc-api-compat 8.10.5 is only compatible with ghc 8.10.5 + - ghc-api-compat == 8.6 # 2021-09-07: preserve for GHC 8.8.4 package-maintainers: abbradar: diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index 45715e46942a..724889e97b97 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -102413,6 +102413,18 @@ self: { }) {}; "ghc-api-compat" = callPackage + ({ mkDerivation, base, ghc }: + mkDerivation { + pname = "ghc-api-compat"; + version = "8.10.7"; + sha256 = "1swsly340pj4inmk1l57q4s0dpw8iibl192y1zayvkgc43zky62a"; + libraryHaskellDepends = [ base ghc ]; + doHaddock = false; + description = "GHC-API compatibility helpers"; + license = lib.licenses.bsd3; + }) {}; + + "ghc-api-compat_9_0_1" = callPackage ({ mkDerivation, base, containers, ghc }: mkDerivation { pname = "ghc-api-compat"; @@ -102421,6 +102433,7 @@ self: { libraryHaskellDepends = [ base containers ghc ]; description = "GHC-API compatibility helpers"; license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; }) {}; "ghc-bignum" = callPackage diff --git a/pkgs/top-level/release-haskell.nix b/pkgs/top-level/release-haskell.nix index 26f538ff3386..367bf95b3d83 100644 --- a/pkgs/top-level/release-haskell.nix +++ b/pkgs/top-level/release-haskell.nix @@ -312,6 +312,7 @@ let language-nix = all; nix-paths = all; titlecase = all; + ghc-api-compat = all; }) { mergeable = pkgs.releaseTools.aggregate {