2020-06-08 13:37:04 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, alcotest, cppo
|
2020-09-10 14:56:50 +00:00
|
|
|
, ocaml-migrate-parsetree, ppx_tools_versioned, reason, yojson }:
|
2020-06-08 13:37:04 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "graphql_ppx";
|
2020-09-10 14:56:50 +00:00
|
|
|
version = "1.0.1";
|
2020-06-08 13:37:04 +00:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.06";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "reasonml-community";
|
2020-09-10 14:56:50 +00:00
|
|
|
repo = "graphql-ppx";
|
2020-06-08 13:37:04 +00:00
|
|
|
rev = "v${version}";
|
2020-09-10 14:56:50 +00:00
|
|
|
sha256 = "0lvmv1sb0ca9mja6di1dbmsgjqgj3w9var4amv1iz9nhwjjx4cpi";
|
2020-06-08 13:37:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs =
|
2020-09-10 14:56:50 +00:00
|
|
|
[ cppo ocaml-migrate-parsetree ppx_tools_versioned reason yojson ];
|
2020-06-08 13:37:04 +00:00
|
|
|
|
|
|
|
checkInputs = lib.optional doCheck alcotest;
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-09-10 14:56:50 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-06-08 13:37:04 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/reasonml-community/graphql_ppx";
|
|
|
|
description = "GraphQL PPX rewriter for Bucklescript/ReasonML";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ Zimmi48 jtcoolen ];
|
|
|
|
};
|
|
|
|
}
|