1{
2 lib,
3 buildDunePackage,
4 fetchFromGitHub,
5 alcotest,
6 reason,
7 result,
8 ppxlib,
9 yojson,
10}:
11
12buildDunePackage rec {
13 pname = "graphql_ppx";
14 version = "1.2.2";
15
16 duneVersion = "3";
17
18 minimalOCamlVersion = "4.08";
19
20 src = fetchFromGitHub {
21 owner = "reasonml-community";
22 repo = "graphql-ppx";
23 rev = "v${version}";
24 sha256 = "sha256-+WJhA2ixZHiSZBoX14dnQKk7JfVAIME4JooNSnhRp44=";
25 };
26
27 nativeBuildInputs = [ reason ];
28
29 buildInputs = [
30 ppxlib
31 reason
32 ];
33
34 propagatedBuildInputs = [
35 reason
36 result
37 yojson
38 ];
39
40 checkInputs = [ alcotest ];
41
42 doCheck = true;
43
44 meta = {
45 homepage = "https://github.com/reasonml-community/graphql_ppx";
46 description = "GraphQL PPX rewriter for Bucklescript/ReasonML";
47 license = lib.licenses.mit;
48 maintainers = with lib.maintainers; [
49 Zimmi48
50 jtcoolen
51 ];
52 };
53}