From 9b834a210e0a4735b6b4bc45672806f249e588d4 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 6 Dec 2019 06:19:00 +0000 Subject: [PATCH] ocamlPackages.graphql-lwt: init at 0.13.0 --- .../development/ocaml-modules/graphql/lwt.nix | 19 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/development/ocaml-modules/graphql/lwt.nix diff --git a/pkgs/development/ocaml-modules/graphql/lwt.nix b/pkgs/development/ocaml-modules/graphql/lwt.nix new file mode 100644 index 000000000000..37d75f9e22ea --- /dev/null +++ b/pkgs/development/ocaml-modules/graphql/lwt.nix @@ -0,0 +1,19 @@ +{ lib, buildDunePackage, alcotest, graphql, ocaml_lwt }: + +buildDunePackage rec { + pname = "graphql-lwt"; + + inherit (graphql) version src; + + propagatedBuildInputs = [ graphql ocaml_lwt ]; + + checkInputs = lib.optional doCheck alcotest; + + doCheck = true; + + meta = graphql.meta // { + description = "Build GraphQL schemas with Lwt support"; + }; + +} + diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 54949399a0da..77277b6b88b6 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -350,6 +350,8 @@ let graphql = callPackage ../development/ocaml-modules/graphql { }; + graphql-lwt = callPackage ../development/ocaml-modules/graphql/lwt.nix { }; + graphql_parser = callPackage ../development/ocaml-modules/graphql/parser.nix { }; gtktop = callPackage ../development/ocaml-modules/gtktop { };