haskell.packages.*.semaphore-compat: provide for GHC < 9.8

Add a job for every compiler in release-haskell.nix, so that these
overrides are less likely to bitrot.
This commit is contained in:
sternenseemann
2025-01-17 12:20:51 +01:00
parent 237bfde6eb
commit 808b83ceac
7 changed files with 27 additions and 0 deletions
@@ -61,6 +61,9 @@ self: super: {
# their existence to callPackages, but their is no shim for lower GHC versions.
system-cxx-std-lib = null;
# Becomes a core package in GHC >= 9.8
semaphore-compat = doDistribute self.semaphore-compat_1_0_0;
# For GHC < 9.4, some packages need data-array-byte as an extra dependency
# For GHC < 9.2, os-string is not required.
primitive = addBuildDepends [ self.data-array-byte ] super.primitive;
@@ -58,6 +58,9 @@ self: super: {
# their existence to callPackages, but their is no shim for lower GHC versions.
system-cxx-std-lib = null;
# Becomes a core package in GHC >= 9.8
semaphore-compat = doDistribute self.semaphore-compat_1_0_0;
# Needs Cabal 3.0.x.
jailbreak-cabal = super.jailbreak-cabal.overrideScope (cself: _: { Cabal = cself.Cabal_3_2_1_0; });
@@ -60,6 +60,9 @@ self: super: {
# their existence to callPackages, but their is no shim for lower GHC versions.
system-cxx-std-lib = null;
# Becomes a core package in GHC >= 9.8
semaphore-compat = doDistribute self.semaphore-compat_1_0_0;
# Jailbreaks & Version Updates
# For GHC < 9.4, some packages need data-array-byte as an extra dependency
@@ -60,6 +60,9 @@ self: super: {
# their existence to callPackages, but their is no shim for lower GHC versions.
system-cxx-std-lib = null;
# Becomes a core package in GHC >= 9.8
semaphore-compat = doDistribute self.semaphore-compat_1_0_0;
# weeder >= 2.5 requires GHC 9.4
weeder = doDistribute self.weeder_2_4_1;
# Allow dhall 1.42.*
@@ -63,6 +63,9 @@ 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 doDistribute self.xhtml_3000_4_0_0;
# Becomes a core package in GHC >= 9.8
semaphore-compat = doDistribute self.semaphore-compat_1_0_0;
# Jailbreaks & Version Updates
hashable-time = doJailbreak super.hashable-time;
@@ -69,6 +69,9 @@ self: super:
unix = null;
xhtml = null;
# Becomes a core package in GHC >= 9.8
semaphore-compat = doDistribute self.semaphore-compat_1_0_0;
#
# Version deviations from Stackage LTS
#
+9
View File
@@ -603,6 +603,15 @@ let
] released;
hashable = released;
primitive = released;
semaphore-compat = [
# Compiler < 9.8 don't have the semaphore-compat core package
compilerNames.ghc865Binary
compilerNames.ghc8107
compilerNames.ghc902
compilerNames.ghc928
compilerNames.ghc948
compilerNames.ghc966
];
weeder = lib.subtractLists [
compilerNames.ghc9101
compilerNames.ghc9121