2019-12-06 07:18:49 +01:00
|
|
|
{ lib, buildDunePackage, fetchurl, alcotest, fmt, menhir, re }:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "graphql_parser";
|
|
|
|
version = "0.13.0";
|
|
|
|
|
2020-12-05 17:27:35 +01:00
|
|
|
useDune2 = true;
|
|
|
|
|
2019-12-06 07:18:49 +01:00
|
|
|
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 ];
|
|
|
|
|
2020-12-05 17:27:35 +01:00
|
|
|
checkInputs = [ alcotest ];
|
2019-12-06 07:18:49 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|