haskellPackages.conduit-extra: fix darwin sandbox build

The tests depend on localhost networking and get stuck otherwise.
This commit is contained in:
Daiderd Jordan 2019-02-14 20:06:09 +01:00
parent 0ac83f0857
commit 34726a8139
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -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