ocamlPackages.graphql-cohttp: init at 0.13.0

This commit is contained in:
Vincent Laporte 2019-12-06 06:19:04 +00:00 committed by Vincent Laporte
parent 9b834a210e
commit c09e680e77
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,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";
};
}

View File

@ -350,6 +350,8 @@ let
graphql = callPackage ../development/ocaml-modules/graphql { };
graphql-cohttp = callPackage ../development/ocaml-modules/graphql/cohttp.nix { };
graphql-lwt = callPackage ../development/ocaml-modules/graphql/lwt.nix { };
graphql_parser = callPackage ../development/ocaml-modules/graphql/parser.nix { };