nixpkgs/pkgs/development/ocaml-modules/graphql_ppx/default.nix

33 lines
849 B
Nix
Raw Normal View History

2020-06-08 13:37:04 +00:00
{ lib, buildDunePackage, fetchFromGitHub, alcotest, cppo
, ocaml-migrate-parsetree, ppx_tools_versioned, reason, yojson }:
2020-06-08 13:37:04 +00:00
buildDunePackage rec {
pname = "graphql_ppx";
version = "1.0.1";
2020-06-08 13:37:04 +00:00
minimumOCamlVersion = "4.06";
src = fetchFromGitHub {
owner = "reasonml-community";
repo = "graphql-ppx";
2020-06-08 13:37:04 +00:00
rev = "v${version}";
sha256 = "0lvmv1sb0ca9mja6di1dbmsgjqgj3w9var4amv1iz9nhwjjx4cpi";
2020-06-08 13:37:04 +00:00
};
propagatedBuildInputs =
[ cppo ocaml-migrate-parsetree ppx_tools_versioned reason yojson ];
2020-06-08 13:37:04 +00:00
checkInputs = lib.optional doCheck alcotest;
doCheck = false;
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";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ Zimmi48 jtcoolen ];
};
}