depot/third_party/nixpkgs/pkgs/development/ocaml-modules/graphql/parser.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

28 lines
737 B
Nix

{ 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 ];
};
}