summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/graphql/parser.nix
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2019-12-10 19:00:06 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2019-12-10 19:01:27 +0100
commitf3618342ece994482697892133532a380a04cd0f (patch)
treebd6067d893770d9f7d272aaa5c5968ff517769d0 /pkgs/development/ocaml-modules/graphql/parser.nix
parent5e7e4c93a9a93c12d5eaa3a91e289d18195aaa75 (diff)
parent2ff8cef0a4c969b9c377db4e0fe6eb8f5404e0b4 (diff)
downloadnixpkgs-f3618342ece994482697892133532a380a04cd0f.tar
nixpkgs-f3618342ece994482697892133532a380a04cd0f.tar.gz
nixpkgs-f3618342ece994482697892133532a380a04cd0f.tar.bz2
nixpkgs-f3618342ece994482697892133532a380a04cd0f.tar.lz
nixpkgs-f3618342ece994482697892133532a380a04cd0f.tar.xz
nixpkgs-f3618342ece994482697892133532a380a04cd0f.tar.zst
nixpkgs-f3618342ece994482697892133532a380a04cd0f.zip
Merge staging-next into staging
Diffstat (limited to 'pkgs/development/ocaml-modules/graphql/parser.nix')
-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 00000000000..4172ccd8d04
--- /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 ];
+  };
+
+}