37 lines
773 B
Nix
37 lines
773 B
Nix
{ lib, buildDunePackage, fetchFromGitHub, alcotest, reason
|
|
, ppxlib
|
|
, yojson }:
|
|
|
|
buildDunePackage rec {
|
|
pname = "graphql_ppx";
|
|
version = "1.2.0";
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "reasonml-community";
|
|
repo = "graphql-ppx";
|
|
rev = "v${version}";
|
|
sha256 = "1fymmvk616wv5xkwfdmqibdgfl47ry6idc5wfh20a3mz9mpaa13s";
|
|
};
|
|
|
|
buildInputs = [ ppxlib ];
|
|
|
|
propagatedBuildInputs = [
|
|
reason
|
|
yojson
|
|
];
|
|
|
|
checkInputs = [ alcotest ];
|
|
|
|
doCheck = true;
|
|
|
|
useDune2 = true;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/reasonml-community/graphql_ppx";
|
|
description = "GraphQL PPX rewriter for Bucklescript/ReasonML";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ Zimmi48 jtcoolen ];
|
|
};
|
|
}
|