From 057b9549f19cf2155dc0ab50956b8c5e55782e9b Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 31 May 2026 15:40:37 +0200 Subject: [PATCH] haskellPackages.warp: skip tests on darwin due to sandbox Warp has been failing to build in the darwin sandbox for a long time, because of some failing tests, even with local networking enabled. This does not surface when using it from the cache, because hydra builds without sandbox. But for development / nixpkgs-review, this is heavily annoying. Disabling these two tests makes the build pass on the community builder for me. --- pkgs/development/haskell-modules/configuration-darwin.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index c94f74c4e10c..487db708c48d 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -294,6 +294,12 @@ self: super: warp = overrideCabal (drv: { __darwinAllowLocalNetworking = true; + # These fail in darwin sandbox with: + # Network.SendFile.MacOS.sendloopHeader: permission denied (Operation not permitted) + testFlags = drv.testFlags or [ ] ++ [ + "--skip=/Response/range requests/" + "--skip=/Response/partial files/" + ]; }) super.warp; ghcjs-dom-hello = overrideCabal (drv: {