1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 01:51:24 +00:00
nixpkgs/pkgs/development/ocaml-modules/graphql/cohttp.nix
2019-12-09 09:53:40 +01:00

25 lines
535 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;
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";
};
}