git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #17367 from Profpatsch/haskellPackages-cereal-override

haskellPackages.cereal: fix for pre-GHC8

commit008e8258c014505f1f644cd9b2bb0fb21bfe9f93 authorPeter Simons <simons@cryp.to> dateSat 30 Jul 2016, 13:32 (10 years ago) parent46134cb4741e9e
2 files changed+4−7
pkgs/development/haskell-modules/configuration-common.nix−5 pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix+4−2
pkgs/development/haskell-modules/configuration-common.nix−5
@@ -946,9 +946,4 @@ self: super: {
946946 url = "https://github.com/commercialhaskell/stack/commit/7f7f1a5f67f4ecdd1f3009495f1ff101dd38047e.patch";
947947 sha256 = "1yh2g45mkfpwxq0vyzcbc4nbxh6wmb2xpp0k7r5byd8jicgvli29";
948948 });
949−
950− # Glob depends conditionally on semigroups for GHC < 8
951− Glob = if pkgs.lib.versionAtLeast self.ghc.version "8.0"
952− then super.Glob
953− else addBuildDepend super.Glob self.semigroups;
954949}
pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix+4−2
@@ -181,8 +181,6 @@ self: super: {
181181 # lens-family-th >= 0.5.0.0 is GHC 8.0 only
182182 lens-family-th = self.lens-family-th_0_4_1_0;
183183
184− # cereal must have `fail` in pre-ghc-8.0.x versions
185− cereal = addBuildDepend super.cereal self.fail;
186184
187185 # The tests in vty-ui do not build, but vty-ui itself builds.
188186 vty-ui = enableCabalFlag super.vty-ui "no-tests";
@@ -210,6 +208,10 @@ self: super: {
210208 intervals = addBuildDepends super.intervals (with self; [doctest QuickCheck]);
211209 Glob_0_7_9 = addBuildDepends super.Glob_0_7_9 (with self; [semigroups]);
212210 Glob = addBuildDepends super.Glob (with self; [semigroups]);
211+ # cereal must have `fail` in pre-ghc-8.0.x versions
212+ # also tests require bytestring>=0.10.8.1
213+ cereal = dontCheck (addBuildDepend super.cereal self.fail);
214+ cereal_0_5_2_0 = dontCheck (addBuildDepend super.cereal_0_5_2_0 self.fail);
213215
214216 # Moved out from common as no longer the case for GHC8
215217 ghc-mod = super.ghc-mod.override { cabal-helper = self.cabal-helper_0_6_3_1; };