From 8f5937e36e9e3c46e90e668ada5436dbb7b558f4 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 17 Jan 2017 13:28:28 +0100 Subject: [PATCH] haskell-distributive: fix build with ghc versions prior to 8.x --- .../haskell-modules/configuration-ghc-7.10.x.nix | 6 ++---- .../development/haskell-modules/configuration-ghc-7.6.x.nix | 1 + .../development/haskell-modules/configuration-ghc-7.8.x.nix | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix b/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix index 564ce3c04ec..6263d38a2bb 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix @@ -103,8 +103,6 @@ self: super: { license = pkgs.stdenv.lib.licenses.bsd3; }) {}; - mono-traversable = addBuildDepend super.mono-traversable self.semigroups; - # diagrams/monoid-extras#19 monoid-extras = overrideCabal super.monoid-extras (drv: { prePatch = "sed -i 's|4\.8|4.9|' monoid-extras.cabal"; @@ -185,6 +183,8 @@ self: super: { hackage-security = dontHaddock (dontCheck super.hackage-security); # GHC versions prior to 8.x require additional build inputs. + distributive = addBuildDepend super.distributive self.semigroups; + mono-traversable = addBuildDepend super.mono-traversable self.semigroups; attoparsec = addBuildDepends super.attoparsec (with self; [semigroups fail]); Glob = addBuildDepends super.Glob (with self; [semigroups]); Glob_0_7_10 = addBuildDepends super.Glob_0_7_10 (with self; [semigroups]); @@ -208,6 +208,4 @@ self: super: { # Moved out from common as no longer the case for GHC8 ghc-mod = super.ghc-mod.override { cabal-helper = self.cabal-helper_0_6_3_1; }; - - } diff --git a/pkgs/development/haskell-modules/configuration-ghc-7.6.x.nix b/pkgs/development/haskell-modules/configuration-ghc-7.6.x.nix index 1c579b9d6e2..ffd6845b1d0 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-7.6.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-7.6.x.nix @@ -99,6 +99,7 @@ self: super: { # Needs additional inputs on pre 7.10.x compilers. semigroups = addBuildDepends super.semigroups (with self; [bytestring-builder nats tagged unordered-containers transformers]); lens = addBuildDepends super.lens (with self; [doctest generic-deriving nats simple-reflect]); + distributive = addBuildDepend super.distributive self.semigroups; # Haddock doesn't cope with the new markup. bifunctors = dontHaddock super.bifunctors; diff --git a/pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix b/pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix index f7410689866..4b18332648d 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix @@ -142,6 +142,7 @@ self: super: { # Needs additional inputs on pre 7.10.x compilers. semigroups = addBuildDepends super.semigroups (with self; [nats tagged unordered-containers]); lens = addBuildDepends super.lens (with self; [doctest generic-deriving nats simple-reflect]); + distributive = addBuildDepend super.distributive self.semigroups; # Haddock doesn't cope with the new markup. bifunctors = dontHaddock super.bifunctors;