2020-06-08 14:37:04 +01:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, alcotest, cppo
|
2020-09-10 15:56:50 +01:00
|
|
|
, ocaml-migrate-parsetree, ppx_tools_versioned, reason, yojson }:
|
2020-06-08 14:37:04 +01:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "graphql_ppx";
|
2020-09-10 15:56:50 +01:00
|
|
|
version = "1.0.1";
|
2020-06-08 14:37:04 +01:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.06";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "reasonml-community";
|
2020-09-10 15:56:50 +01:00
|
|
|
repo = "graphql-ppx";
|
2020-06-08 14:37:04 +01:00
|
|
|
rev = "v${version}";
|
2020-09-10 15:56:50 +01:00
|
|
|
sha256 = "0lvmv1sb0ca9mja6di1dbmsgjqgj3w9var4amv1iz9nhwjjx4cpi";
|
2020-06-08 14:37:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs =
|
2020-09-10 15:56:50 +01:00
|
|
|
[ cppo ocaml-migrate-parsetree ppx_tools_versioned reason yojson ];
|
2020-06-08 14:37:04 +01:00
|
|
|
|
|
|
|
checkInputs = lib.optional doCheck alcotest;
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-09-10 15:56:50 +01:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-06-08 14:37:04 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|