forked from mirrors/nixpkgs
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
40 lines
800 B
Nix
40 lines
800 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=";
|
|
};
|
|
|
|
buildInputs = [ ppxlib ];
|
|
|
|
propagatedBuildInputs = [
|
|
reason
|
|
result
|
|
yojson
|
|
];
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|