2019-12-06 07:19:04 +01:00
|
|
|
{ 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;
|
|
|
|
|
2020-06-25 23:22:21 +02:00
|
|
|
useDune2 = true;
|
|
|
|
|
2019-12-06 07:19:04 +01:00
|
|
|
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”";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|