From 34726a8139ecde1b1337d430d49ae57dea6ded8b Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Thu, 14 Feb 2019 20:06:09 +0100 Subject: haskellPackages.conduit-extra: fix darwin sandbox build The tests depend on localhost networking and get stuck otherwise. --- pkgs/development/haskell-modules/configuration-common.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkgs') diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 4391f7b6f46..e13f87ed6d6 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -151,6 +151,10 @@ self: super: { # dontCheck due to https://github.com/haskell/vector/issues/138 vector = dontCheck (if pkgs.stdenv.isi686 then appendConfigureFlag super.vector "--ghc-options=-msse2" else super.vector); + conduit-extra = if pkgs.stdenv.isDarwin + then super.conduit-extra.overrideAttrs (drv: { __darwinAllowLocalNetworking = true; }) + else super.conduit-extra; + # Fix Darwin build. halive = if pkgs.stdenv.isDarwin then addBuildDepend super.halive pkgs.darwin.apple_sdk.frameworks.AppKit -- cgit 1.4.1