2018-12-17 21:39:43 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, ppxfind, ounit
|
|
|
|
, 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";
|
2020-03-10 16:11:49 +00:00
|
|
|
version = "3.5.2";
|
2018-12-17 21:39:43 +00:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.04";
|
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}";
|
2020-03-10 16:11:49 +00:00
|
|
|
sha256 = "1vbhmnhnj1aa4jrp8xqi52nggwj7vrml83z2j0r0qzvl65v02mc0";
|
2017-03-18 12:58:49 +00:00
|
|
|
};
|
|
|
|
|
2018-12-17 21:39:43 +00:00
|
|
|
buildInputs = [ ppxfind ounit ];
|
2017-03-18 12:58:49 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ ppx_deriving yojson ];
|
|
|
|
|
2018-12-17 21:39:43 +00:00
|
|
|
doCheck = true;
|
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
|
|
|
};
|
|
|
|
}
|