From e31b99c18796194c2f07e5ffe678fd2b46d41eab Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 22 Jun 2017 20:53:37 +0200 Subject: [PATCH] haskell-network: use older version to compile with GHC 7.4.x and before Recent versions of network no longer support base libraries that old. --- pkgs/development/haskell-modules/configuration-ghc-7.0.x.nix | 4 ++++ pkgs/development/haskell-modules/configuration-ghc-7.2.x.nix | 4 ++++ pkgs/development/haskell-modules/configuration-ghc-7.4.x.nix | 4 ++++ .../haskell-modules/configuration-hackage2nix.yaml | 1 + 4 files changed, 13 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-ghc-7.0.x.nix b/pkgs/development/haskell-modules/configuration-ghc-7.0.x.nix index 58a3002b035..c2a7e001405 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-7.0.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-7.0.x.nix @@ -80,4 +80,8 @@ self: super: { # Needs nats on pre 7.6.x compilers. semigroups = addBuildDepend super.semigroups self.nats; + # Newer versions don't compile any longer. + network_2_6_3_1 = dontCheck super.network_2_6_3_1; + network = self.network_2_6_3_1; + } diff --git a/pkgs/development/haskell-modules/configuration-ghc-7.2.x.nix b/pkgs/development/haskell-modules/configuration-ghc-7.2.x.nix index 421eaf832ed..911fb8640f4 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-7.2.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-7.2.x.nix @@ -78,4 +78,8 @@ self: super: { semigroups = addBuildDepend super.semigroups self.nats; optparse-applicative = addBuildDepend super.optparse-applicative self.semigroups; + # Newer versions don't compile any longer. + network_2_6_3_1 = dontCheck super.network_2_6_3_1; + network = self.network_2_6_3_1; + } diff --git a/pkgs/development/haskell-modules/configuration-ghc-7.4.x.nix b/pkgs/development/haskell-modules/configuration-ghc-7.4.x.nix index ec78e44211f..8a6d22bcc7e 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-7.4.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-7.4.x.nix @@ -102,4 +102,8 @@ self: super: { QuickCheck = addBuildDepends super.QuickCheck (with self; [nats semigroups]); optparse-applicative = addBuildDepend super.optparse-applicative self.semigroups; + # Newer versions don't compile any longer. + network_2_6_3_1 = dontCheck super.network_2_6_3_1; + network = self.network_2_6_3_1; + } diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix.yaml index 78b0ecb3182..c6db553f9cb 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix.yaml @@ -2449,6 +2449,7 @@ extra-packages: - hpack < 0.18 # required by stack-1.4.0 - mtl < 2.2 # newer versions require transformers > 0.4.x, which we cannot provide in GHC 7.8.x - mtl-prelude < 2 # required for to build postgrest on mtl 2.1.x platforms + - network == 2.6.3.1 # newer versions don't compile with GHC 7.4.x and below - parallel == 3.2.0.3 # newer versions don't work with GHC 6.12.3 - primitive == 0.5.1.* # required to build alex with GHC 6.12.3 - QuickCheck < 2 # required by test-framework-quickcheck and its users