summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/graphql/cohttp.nix
blob: c6e85da77f36e6590ed24173a08f4230628e50b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, buildDunePackage, ocaml-crunch
, astring, cohttp, digestif, graphql, ocplib-endian
, alcotest, cohttp-lwt-unix, graphql-lwt
}:

buildDunePackage rec {
  pname = "graphql-cohttp";

  inherit (graphql) version src;

  nativeBuildInputs = [ ocaml-crunch ];
  propagatedBuildInputs = [ astring cohttp digestif graphql ocplib-endian ];

  checkInputs = lib.optionals doCheck [ alcotest cohttp-lwt-unix graphql-lwt ];

  doCheck = true;

  meta = graphql.meta // {
    description = "Run GraphQL servers with “cohttp”";
  };

}