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”"; };