about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-darwin.nix
diff options
context:
space:
mode:
authorRandy Eckenrode <randy@largeandhighquality.com>2023-05-24 19:35:13 -0400
committerRandy Eckenrode <randy@largeandhighquality.com>2023-05-25 23:59:16 -0400
commit9b1c02ede8daf1c319ec7f1b60e8deba84fad8d3 (patch)
tree80b8045ded1e2d21279149adac1cc913ca1d3b9c /pkgs/development/haskell-modules/configuration-darwin.nix
parent15ec108b1d2e23110b41edab9ec513439fcff70e (diff)
haskellPackages.http2: fix build with Darwin sandbox enabled
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-darwin.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-darwin.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix
index c54e2dd03d303..57a2ef31e583a 100644
--- a/pkgs/development/haskell-modules/configuration-darwin.nix
+++ b/pkgs/development/haskell-modules/configuration-darwin.nix
@@ -276,6 +276,12 @@ self: super: ({
     '' + drv.postPatch or "";
   }) super.http-client-tls;
 
+  http2 = super.http2.overrideAttrs (drv: {
+    # Allow access to local networking when the Darwin sandbox is enabled, so http2 can run tests
+    # that access localhost.
+    __darwinAllowLocalNetworking = true;
+  });
+
   foldl = overrideCabal (drv: {
     postPatch = ''
       # This comment has been inserted, so the derivation hash changes, forcing