about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/graphql
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2019-12-06 06:18:49 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2019-12-09 09:53:40 +0100
commit40a023a85336569b61289f276e395883fec24ed9 (patch)
treebf3f19c8ac5964fa6635728aed407c99b91054d4 /pkgs/development/ocaml-modules/graphql
parentce1760abe552c5e5bef1b482d592f91a7b466071 (diff)
downloadnixlib-40a023a85336569b61289f276e395883fec24ed9.tar
nixlib-40a023a85336569b61289f276e395883fec24ed9.tar.gz
nixlib-40a023a85336569b61289f276e395883fec24ed9.tar.bz2
nixlib-40a023a85336569b61289f276e395883fec24ed9.tar.lz
nixlib-40a023a85336569b61289f276e395883fec24ed9.tar.xz
nixlib-40a023a85336569b61289f276e395883fec24ed9.tar.zst
nixlib-40a023a85336569b61289f276e395883fec24ed9.zip
ocamlPackages.graphql_parser: init at 0.13.0
Diffstat (limited to 'pkgs/development/ocaml-modules/graphql')
-rw-r--r--pkgs/development/ocaml-modules/graphql/parser.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/graphql/parser.nix b/pkgs/development/ocaml-modules/graphql/parser.nix
new file mode 100644
index 000000000000..4172ccd8d043
--- /dev/null
+++ b/pkgs/development/ocaml-modules/graphql/parser.nix
@@ -0,0 +1,28 @@
+{ lib, buildDunePackage, fetchurl, alcotest, fmt, menhir, re }:
+
+buildDunePackage rec {
+  pname = "graphql_parser";
+  version = "0.13.0";
+
+  minimumOCamlVersion = "4.03";
+
+  src = fetchurl {
+    url = "https://github.com/andreas/ocaml-graphql-server/releases/download/${version}/graphql-${version}.tbz";
+    sha256 = "0gb5y99ph0nz5y3pc1gxq1py4wji2hyf2ydbp0hv23v00n50hpsm";
+  };
+
+  nativeBuildInputs = [ menhir ];
+  propagatedBuildInputs = [ fmt re ];
+
+  checkInputs = lib.optional doCheck alcotest;
+
+  doCheck = true;
+
+  meta = {
+    homepage = "https://github.com/andreas/ocaml-graphql-server";
+    description = "Library for parsing GraphQL queries";
+    license = lib.licenses.mit;
+    maintainers = [ lib.maintainers.vbgl ];
+  };
+
+}