haskell.packages.*.binary-orphans: provide OneTuple when necessary

The binary-orphans dependency on OneTuple is only activated if GHC < 9.2
which means hackage2nix won't emit this dependency anymore.
This commit is contained in:
sternenseemann 2022-12-28 14:10:41 +01:00
parent 9fdbe9dd46
commit e238c3fdaa
3 changed files with 9 additions and 0 deletions

View file

@ -176,4 +176,7 @@ self: super: {
# Later versions only support GHC >= 9.2
ghc-exactprint = self.ghc-exactprint_0_6_4;
apply-refact = self.apply-refact_0_9_3_0;
# Needs OneTuple for ghc < 9.2
binary-orphans = addBuildDepends [ self.OneTuple ] super.binary-orphans;
}

View file

@ -205,6 +205,9 @@ self: super: {
# https://github.com/mrkkrp/megaparsec/pull/485#issuecomment-1250051823
megaparsec = doJailbreak super.megaparsec;
# Needs OneTuple for ghc < 9.2
binary-orphans = addBuildDepends [ self.OneTuple ] super.binary-orphans;
# Later versions only support GHC >= 9.2
ghc-exactprint = self.ghc-exactprint_0_6_4;
apply-refact = self.apply-refact_0_9_3_0;

View file

@ -178,4 +178,7 @@ self: super: {
# Later versions only support GHC >= 9.2
ghc-exactprint = self.ghc-exactprint_0_6_4;
apply-refact = self.apply-refact_0_9_3_0;
# Needs OneTuple for ghc < 9.2
binary-orphans = addBuildDepends [ self.OneTuple ] super.binary-orphans;
}