From f21f973686020e1b22ad63d91b02893f3cbddc1a Mon Sep 17 00:00:00 2001 From: Alex James Date: Sat, 10 May 2025 21:06:06 -0500 Subject: [PATCH] haskellPackages.network: allow local networking on Darwin Otherwise `checkPhase` fails with the sandboxing enabled: https://gist.github.com/al3xtjames/ff511f36890388345d51a410a2fc18f9 --- pkgs/development/haskell-modules/configuration-darwin.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index 005afaa1ab85..22af40617fcc 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -331,6 +331,10 @@ self: super: sysinfo = dontCheck super.sysinfo; + network = super.network.overrideAttrs (drv: { + __darwinAllowLocalNetworking = true; + }); + } // lib.optionalAttrs pkgs.stdenv.hostPlatform.isAarch64 { # aarch64-darwin