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