From c60b3e4bfc94c567db5d68eaaf6c8c1bbb9d43ee Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 27 Oct 2016 15:10:39 -0700 Subject: [PATCH] haskellPackages.hakyll: Fix the Darwin build (broken tests) --- pkgs/development/haskell-modules/configuration-common.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 3b8a93f2108..3864a190fc8 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -167,6 +167,13 @@ self: super: { then addBuildDepend super.halive pkgs.darwin.apple_sdk.frameworks.AppKit else super.halive; + # Hakyll's tests are broken on Darwin (3 failures); and they require util-linux + hakyll = if pkgs.stdenv.isDarwin + then dontCheck (overrideCabal super.hakyll (drv: { + testToolDepends = []; + })) + else super.hakyll; + # cabal2nix likes to generate dependencies on hinotify when hfsevents is really required # on darwin: https://github.com/NixOS/cabal2nix/issues/146. hinotify = if pkgs.stdenv.isDarwin then self.hfsevents else super.hinotify;