2021-01-31 13:15:46 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, ppxlib, ounit
|
2018-12-17 21:39:43 +00:00
|
|
|
, ppx_deriving, yojson
|
2017-03-18 12:58:49 +00:00
|
|
|
}:
|
|
|
|
|
2018-12-17 21:39:43 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ppx_deriving_yojson";
|
2021-01-31 13:15:46 +00:00
|
|
|
version = "3.6.1";
|
2018-12-17 21:39:43 +00:00
|
|
|
|
2021-01-31 13:15:46 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.07";
|
2017-03-18 12:58:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-11-27 04:59:23 +00:00
|
|
|
owner = "ocaml-ppx";
|
2017-03-18 12:58:49 +00:00
|
|
|
repo = "ppx_deriving_yojson";
|
|
|
|
rev = "v${version}";
|
2021-01-31 13:15:46 +00:00
|
|
|
sha256 = "1icz5h6p3pfj7my5gi7wxpflrb8c902dqa17f9w424njilnpyrbk";
|
2017-03-18 12:58:49 +00:00
|
|
|
};
|
|
|
|
|
2021-01-31 13:15:46 +00:00
|
|
|
propagatedBuildInputs = [ ppxlib ppx_deriving yojson ];
|
2017-03-18 12:58:49 +00:00
|
|
|
|
2018-12-17 21:39:43 +00:00
|
|
|
doCheck = true;
|
2021-01-31 13:15:46 +00:00
|
|
|
checkInputs = [ ounit ];
|
2017-03-18 12:58:49 +00:00
|
|
|
|
|
|
|
meta = {
|
2018-12-17 21:39:43 +00:00
|
|
|
description = "A Yojson codec generator for OCaml >= 4.04";
|
2017-03-18 12:58:49 +00:00
|
|
|
inherit (src.meta) homepage;
|
2018-12-17 21:39:43 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2017-03-18 12:58:49 +00:00
|
|
|
};
|
|
|
|
}
|