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";
|
|
|
|
version = "3.3";
|
|
|
|
|
|
|
|
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}";
|
2018-12-17 21:39:43 +00:00
|
|
|
sha256 = "1gbfziw03r9azqlsmyn6izrgrf1xc30s88jgdany1kblpgq41rsz";
|
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
|
|
|
};
|
|
|
|
}
|