Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
41 lines
836 B
Nix
41 lines
836 B
Nix
{ 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 ];
|
|
};
|
|
}
|