2021-07-17 19:08:22 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, alcotest, reason
|
|
|
|
, ppxlib
|
|
|
|
, yojson }:
|
2020-06-08 13:37:04 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "graphql_ppx";
|
2021-07-17 19:08:22 +00:00
|
|
|
version = "1.2.0";
|
2020-06-08 13:37:04 +00:00
|
|
|
|
2021-07-17 19:08:22 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2020-06-08 13:37:04 +00:00
|
|
|
|
|
|
|
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}";
|
2021-07-17 19:08:22 +00:00
|
|
|
sha256 = "1fymmvk616wv5xkwfdmqibdgfl47ry6idc5wfh20a3mz9mpaa13s";
|
2020-06-08 13:37:04 +00:00
|
|
|
};
|
|
|
|
|
2021-07-17 19:08:22 +00:00
|
|
|
buildInputs = [ ppxlib ];
|
2020-06-08 13:37:04 +00:00
|
|
|
|
2021-07-17 19:08:22 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
reason
|
|
|
|
yojson
|
|
|
|
];
|
2020-06-08 13:37:04 +00:00
|
|
|
|
2021-07-17 19:08:22 +00:00
|
|
|
checkInputs = [ alcotest ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2020-06-08 13:37:04 +00:00
|
|
|
|
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";
|
2021-07-17 19:08:22 +00:00
|
|
|
license = lib.licenses.mit;
|
2020-06-08 13:37:04 +00:00
|
|
|
maintainers = with lib.maintainers; [ Zimmi48 jtcoolen ];
|
|
|
|
};
|
|
|
|
}
|