about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/graphql_ppx/default.nix
blob: 9314c1033d4c644bccb287c3d58d02709e54ed4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib, buildDunePackage, fetchFromGitHub, alcotest, reason
, result
, ppxlib
, yojson }:

buildDunePackage rec {
  pname = "graphql_ppx";
  version = "1.2.2";

  duneVersion = "3";

  minimalOCamlVersion = "4.08";

  src = fetchFromGitHub {
    owner = "reasonml-community";
    repo = "graphql-ppx";
    rev = "v${version}";
    sha256 = "sha256-+WJhA2ixZHiSZBoX14dnQKk7JfVAIME4JooNSnhRp44=";
  };

  nativeBuildInputs = [ reason ];

  buildInputs = [ ppxlib reason ];

  propagatedBuildInputs = [
    reason
    result
    yojson
  ];

  checkInputs = [ alcotest ];

  doCheck = 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 ];
  };
}