From 2cdac195acef474353b26f466b173a617d2f0c1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marijan=20Petri=C4=8Devi=C4=87?= Date: Fri, 22 Aug 2025 12:11:24 +0200 Subject: [PATCH] ocamlPackages.graphql-cohttp: patch Cohttp.Response.make call --- pkgs/development/ocaml-modules/graphql/cohttp.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/ocaml-modules/graphql/cohttp.nix b/pkgs/development/ocaml-modules/graphql/cohttp.nix index 52d2aa6d5e5f..c60745b23cd3 100644 --- a/pkgs/development/ocaml-modules/graphql/cohttp.nix +++ b/pkgs/development/ocaml-modules/graphql/cohttp.nix @@ -36,6 +36,11 @@ buildDunePackage rec { doCheck = true; + postPatch = '' + substituteInPlace graphql-cohttp/src/graphql_websocket.ml \ + --replace-fail "~flush:true ()" "~version:\`HTTP_1_1 ()" + ''; + meta = graphql.meta // { description = "Run GraphQL servers with “cohttp”"; };