diff options
author | sternenseemann <sternenseemann@systemli.org> | 2022-12-28 14:10:41 +0100 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2022-12-28 14:10:41 +0100 |
commit | e238c3fdaab710a2ce0135e5a77cd7e6bb023a22 (patch) | |
tree | f02a6914c8d69dfeb53dd4288300e24d78440696 | |
parent | 9fdbe9dd4604cb90d6c42060af3c0ed5debaa2a3 (diff) |
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.
3 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix index c11070d21fafe..b66a34db94e62 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix @@ -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; } 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 0c75456735b72..00ecac6db57e7 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix @@ -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; 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 350bc4ddfe6a2..d74d70a3bc6db 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix @@ -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; } |