diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix index 41b81b6ba15f..4b67704b3d47 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix @@ -201,6 +201,7 @@ in # A given major version of ghc-exactprint only supports one version of GHC. ghc-exactprint = addBuildDepend self.extra super.ghc-exactprint_1_7_1_0; + ghc-lib = doDistribute self.ghc-lib_9_8_5_20250214; ghc-lib-parser = doDistribute self.ghc-lib-parser_9_8_5_20250214; ghc-lib-parser-ex = doDistribute self.ghc-lib-parser-ex_9_8_0_2; haddock-library = doJailbreak super.haddock-library; diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.8.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.8.x.nix index 8b430b143451..f46144828e42 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.8.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.8.x.nix @@ -106,6 +106,7 @@ in ghc-exactprint = doDistribute super.ghc-exactprint_1_8_0_0; haddock-library = doJailbreak super.haddock-library; + ghc-lib = doDistribute self.ghc-lib_9_8_5_20250214; ghc-lib-parser = doDistribute self.ghc-lib-parser_9_8_5_20250214; ghc-lib-parser-ex = doDistribute self.ghc-lib-parser-ex_9_8_0_2; inherit diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml index 33fcd5134f12..435d8982c38e 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml @@ -69,6 +69,7 @@ extra-packages: - ghc-exactprint == 1.9.* # 2024-08-27: needed for GHC == 9.10 - ghc-exactprint == 1.12.* # 2025-10-15: needed for GHC == 9.12 - ghc-lib == 9.6.* # 2022-02-17: preserve for GHC 9.4 + - ghc-lib == 9.8.* # 2025-12-11: preserve for GHC 9.6, 9.8 - ghc-lib == 9.10.* # 2024-12-30: preserve for GHC 9.10/ghc-tags 1.9 - ghc-lib-parser == 9.6.* # 2024-05-19: preserve for GHC 9.4 - ghc-lib-parser == 9.8.* # 2024-12-26: preserve for GHC 9.6, 9.8 diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index 717a6d121386..646dc50b6ae1 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -261125,6 +261125,71 @@ self: { } ) { }; + ghc-lib_9_8_5_20250214 = callPackage ( + { + mkDerivation, + alex, + array, + base, + binary, + bytestring, + containers, + deepseq, + directory, + exceptions, + filepath, + ghc-lib-parser, + ghc-prim, + happy, + hpc, + parsec, + pretty, + process, + rts, + semaphore-compat, + stm, + time, + transformers, + unix, + }: + mkDerivation { + pname = "ghc-lib"; + version = "9.8.5.20250214"; + sha256 = "1f0q8y22k8qwqjax4bvn1cbg2whxmcnfydp6izw54rk4yqyx5b0c"; + enableSeparateDataOutput = true; + libraryHaskellDepends = [ + array + base + binary + bytestring + containers + deepseq + directory + exceptions + filepath + ghc-lib-parser + ghc-prim + hpc + parsec + pretty + process + rts + semaphore-compat + stm + time + transformers + unix + ]; + libraryToolDepends = [ + alex + happy + ]; + description = "The GHC API, decoupled from GHC versions"; + license = lib.licensesSpdx."BSD-3-Clause"; + hydraPlatforms = lib.platforms.none; + } + ) { }; + ghc-lib_9_10_3_20250912 = callPackage ( { mkDerivation,