2021-08-05 21:33:18 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, alcotest, reason
|
2022-10-21 18:38:19 +00:00
|
|
|
, result
|
2021-08-05 21:33:18 +00:00
|
|
|
, ppxlib
|
|
|
|
, yojson }:
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "graphql_ppx";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "1.2.2";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
duneVersion = "3";
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "reasonml-community";
|
2020-09-25 04:45:31 +00:00
|
|
|
repo = "graphql-ppx";
|
2020-06-18 07:06:33 +00:00
|
|
|
rev = "v${version}";
|
2022-05-18 14:49:53 +00:00
|
|
|
sha256 = "sha256-+WJhA2ixZHiSZBoX14dnQKk7JfVAIME4JooNSnhRp44=";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
buildInputs = [ ppxlib ];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
reason
|
2022-10-21 18:38:19 +00:00
|
|
|
result
|
2021-08-05 21:33:18 +00:00
|
|
|
yojson
|
|
|
|
];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
checkInputs = [ alcotest ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/reasonml-community/graphql_ppx";
|
|
|
|
description = "GraphQL PPX rewriter for Bucklescript/ReasonML";
|
2021-08-05 21:33:18 +00:00
|
|
|
license = lib.licenses.mit;
|
2020-06-18 07:06:33 +00:00
|
|
|
maintainers = with lib.maintainers; [ Zimmi48 jtcoolen ];
|
|
|
|
};
|
|
|
|
}
|