From 2e48d838d0c2ac0804e8c56eb4c8474d7f0d64fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benno=20F=C3=BCnfst=C3=BCck?= Date: Fri, 22 Jul 2016 22:55:55 +0200 Subject: [PATCH] haskell/Glob: fix build --- pkgs/development/haskell-modules/configuration-common.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 0b10b48b81e..0753ad04c1e 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -947,4 +947,8 @@ self: super: { sha256 = "1yh2g45mkfpwxq0vyzcbc4nbxh6wmb2xpp0k7r5byd8jicgvli29"; }); + # Glob depends conditionally on semigroups for GHC < 8 + Glob = if pkgs.lib.versionAtLeast self.ghc.version "8.0" + then super.Glob + else addBuildDepend super.Glob self.semigroups; }