4bac34ead1
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
34 lines
565 B
Nix
34 lines
565 B
Nix
{ 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;
|
|
|
|
duneVersion = "3";
|
|
|
|
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”";
|
|
};
|
|
|
|
}
|
|
|
|
|