nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildDunePackage, ocaml-crunch
2, astring, cohttp, digestif, graphql, ocplib-endian
3, alcotest, cohttp-lwt-unix, graphql-lwt
4}:
5
6buildDunePackage rec {
7 pname = "graphql-cohttp";
8
9 inherit (graphql) version src;
10
11 useDune2 = true;
12
13 nativeBuildInputs = [ ocaml-crunch ];
14 propagatedBuildInputs = [ astring cohttp digestif graphql ocplib-endian ];
15
16 checkInputs = lib.optionals doCheck [ alcotest cohttp-lwt-unix graphql-lwt ];
17
18 doCheck = true;
19
20 meta = graphql.meta // {
21 description = "Run GraphQL servers with “cohttp”";
22 };
23
24}
25
26