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";
|
2019-09-19 09:34:27 +01:00
|
|
|
version = "3.5.1";
|
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}";
|
2019-09-19 09:34:27 +01:00
|
|
|
sha256 = "13nscby635vab9jf5pl1wgmdmqw192nf2r26m3gr01hp3bpn38zh";
|
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
|
|
|
};
|
|
|
|
}
|