From d079571aa24a774999ef1fa227687251e274cb96 Mon Sep 17 00:00:00 2001 From: Et7f3 Date: Tue, 24 Jan 2023 01:51:23 +0100 Subject: [PATCH] ocamlPackages.paf, ocamlPackages.paf-cohttp: add local networking for test in test we can read this: [exception] Unix.Unix_error(Unix.EPERM, "bind", "") Raised by primitive operation at Tcpv4v6_socket.listen.(fun) in file "src/stack-unix/tcpv4v6_socket.ml", line 149, characters 6-50 --- pkgs/development/ocaml-modules/paf/cohttp.nix | 2 ++ pkgs/development/ocaml-modules/paf/default.nix | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pkgs/development/ocaml-modules/paf/cohttp.nix b/pkgs/development/ocaml-modules/paf/cohttp.nix index df84083ccb3d..97396769fd05 100644 --- a/pkgs/development/ocaml-modules/paf/cohttp.nix +++ b/pkgs/development/ocaml-modules/paf/cohttp.nix @@ -47,6 +47,8 @@ buildDunePackage { astring ]; + __darwinAllowLocalNetworking = true; + meta = paf.meta // { description = "A CoHTTP client with its HTTP/AF implementation"; }; diff --git a/pkgs/development/ocaml-modules/paf/default.nix b/pkgs/development/ocaml-modules/paf/default.nix index acd16434f6ee..d172e73e13b2 100644 --- a/pkgs/development/ocaml-modules/paf/default.nix +++ b/pkgs/development/ocaml-modules/paf/default.nix @@ -61,6 +61,8 @@ buildDunePackage rec { alcotest-lwt ]; + __darwinAllowLocalNetworking = true; + meta = { description = "HTTP/AF and MirageOS"; license = lib.licenses.mit;