a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
26 lines
563 B
Nix
26 lines
563 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 ];
|
|
|
|
nativeCheckInputs = lib.optionals doCheck [ alcotest cohttp-lwt-unix graphql-lwt ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = graphql.meta // {
|
|
description = "Run GraphQL servers with “cohttp”";
|
|
};
|
|
|
|
}
|
|
|
|
|