haskell.packages.*.weeder: provide algebraic-graphs < 0.7 if needed
weeder has no actively maintained support for older GHC versions, so we need to partially restore historic install-plans when it is affected by breaking changes in other libraries than GHC.
This commit is contained in:
parent
658c5f1dcf
commit
4f88c9d750
5 changed files with 43 additions and 3 deletions
|
@ -150,8 +150,14 @@ self: super: {
|
|||
|
||||
mime-string = disableOptimization super.mime-string;
|
||||
|
||||
# weeder 2.3.0 no longer supports GHC 8.10
|
||||
# weeder 2.3.* no longer supports GHC 8.10
|
||||
weeder = doDistribute (doJailbreak self.weeder_2_2_0);
|
||||
# Unnecessarily strict upper bound on lens
|
||||
weeder_2_2_0 = doJailbreak (super.weeder_2_2_0.override {
|
||||
# weeder < 2.6 only supports algebraic-graphs < 0.7
|
||||
# We no longer have matching test deps for algebraic-graphs 0.6.1 in the set
|
||||
algebraic-graphs = dontCheck self.algebraic-graphs_0_6_1;
|
||||
});
|
||||
|
||||
# OneTuple needs hashable (instead of ghc-prim) and foldable1-classes-compat for GHC < 9
|
||||
OneTuple = addBuildDepends [
|
||||
|
|
|
@ -142,8 +142,14 @@ self: super: {
|
|||
(if isDarwin then appendConfigureFlags ["--ghc-option=-fcompact-unwind"] else x: x)
|
||||
super.inline-c-cpp;
|
||||
|
||||
# 2022-05-31: weeder 2.3.0 requires GHC 9.2
|
||||
# 2022-05-31: weeder 2.4.* requires GHC 9.2
|
||||
weeder = doDistribute self.weeder_2_3_1;
|
||||
# Unnecessarily strict upper bound on lens
|
||||
weeder_2_3_1 = doJailbreak (super.weeder_2_3_1.override {
|
||||
# weeder < 2.6 only supports algebraic-graphs < 0.7
|
||||
# We no longer have matching test deps for algebraic-graphs 0.6.1 in the set
|
||||
algebraic-graphs = dontCheck self.algebraic-graphs_0_6_1;
|
||||
});
|
||||
|
||||
# Restrictive upper bound on base and containers
|
||||
sv2v = doJailbreak super.sv2v;
|
||||
|
|
|
@ -55,8 +55,13 @@ self: super: {
|
|||
# their existence to callPackages, but their is no shim for lower GHC versions.
|
||||
system-cxx-std-lib = null;
|
||||
|
||||
# weeder == 2.5.* requires GHC 9.4
|
||||
# weeder >= 2.5 requires GHC 9.4
|
||||
weeder = doDistribute self.weeder_2_4_1;
|
||||
weeder_2_4_1 = super.weeder_2_4_1.override {
|
||||
# weeder < 2.6 only supports algebraic-graphs < 0.7
|
||||
# We no longer have matching test deps for algebraic-graphs 0.6.1 in the set
|
||||
algebraic-graphs = dontCheck self.algebraic-graphs_0_6_1;
|
||||
};
|
||||
|
||||
ormolu = self.ormolu_0_5_2_0.override {
|
||||
Cabal-syntax = self.Cabal-syntax_3_8_1_0;
|
||||
|
|
|
@ -141,6 +141,7 @@ extra-packages:
|
|||
- ghc-tags == 1.5.* # 2023-02-18: preserve for ghc-lib == 9.2.*
|
||||
- shake-cabal < 0.2.2.3 # 2023-07-01: last version to support Cabal 3.6.*
|
||||
- unix-compat < 0.7 # 2023-07-04: Need System.PosixCompat.User for git-annex
|
||||
- algebraic-graphs < 0.7 # 2023-08-14: Needed for building weeder < 2.6.0
|
||||
|
||||
package-maintainers:
|
||||
abbradar:
|
||||
|
|
|
@ -27656,6 +27656,28 @@ self: {
|
|||
broken = true;
|
||||
}) {};
|
||||
|
||||
"algebraic-graphs_0_6_1" = callPackage
|
||||
({ mkDerivation, array, base, containers, deepseq, extra
|
||||
, inspection-testing, QuickCheck, transformers
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "algebraic-graphs";
|
||||
version = "0.6.1";
|
||||
sha256 = "168aqkm7mfd4is95qwpyf9k0k95qf5rfnkhq5ydbr74jj4jrhr1d";
|
||||
revision = "1";
|
||||
editedCabalFile = "1lnzgy3z51jyl1ail3wdd817np84gzi2bplccwzbm72glwbakc5h";
|
||||
libraryHaskellDepends = [
|
||||
array base containers deepseq transformers
|
||||
];
|
||||
testHaskellDepends = [
|
||||
array base containers deepseq extra inspection-testing QuickCheck
|
||||
transformers
|
||||
];
|
||||
description = "A library for algebraic graph construction and transformation";
|
||||
license = lib.licenses.mit;
|
||||
hydraPlatforms = lib.platforms.none;
|
||||
}) {};
|
||||
|
||||
"algebraic-graphs" = callPackage
|
||||
({ mkDerivation, array, base, containers, deepseq, extra
|
||||
, inspection-testing, QuickCheck, transformers
|
||||
|
|
Loading…
Reference in a new issue