about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-darwin.nix
diff options
context:
space:
mode:
authorDennis Gosnell <cdep.illabout@gmail.com>2023-05-26 22:36:09 +0900
committerGitHub <noreply@github.com>2023-05-26 22:36:09 +0900
commit90fd70295070a88ac1d6869ba5273e66aef626ab (patch)
treee78fdcb9be96b4b99273ac806c2c00a0158881c6 /pkgs/development/haskell-modules/configuration-darwin.nix
parent74af609dea8fa13e51043956e8b266557e4ad9e5 (diff)
parent9b1c02ede8daf1c319ec7f1b60e8deba84fad8d3 (diff)
Merge pull request #234132 from reckenrode/http2-darwin-fix
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 8a5f83651113a..a5bac147d148a 100644
--- a/pkgs/development/haskell-modules/configuration-darwin.nix
+++ b/pkgs/development/haskell-modules/configuration-darwin.nix
@@ -282,6 +282,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