1 { lib, buildDunePackage, fetchFromGitHub, ocaml, ppxlib, ounit
6 if lib.versionAtLeast ppxlib.version "0.26" then {
8 sha256 = "sha256-niKxn1fX0mL1MhlZvbN1wgRed9AHh+z9s6l++k1VX9k=";
11 sha256 = "1icz5h6p3pfj7my5gi7wxpflrb8c902dqa17f9w424njilnpyrbk";
15 buildDunePackage rec {
16 pname = "ppx_deriving_yojson";
17 inherit (param) version;
19 minimalOCamlVersion = "4.07";
21 src = fetchFromGitHub {
23 repo = "ppx_deriving_yojson";
25 inherit (param) sha256;
28 propagatedBuildInputs = [ ppxlib ppx_deriving yojson ];
30 doCheck = lib.versionAtLeast ocaml.version "4.08";
31 checkInputs = [ ounit ];
34 description = "Yojson codec generator for OCaml >= 4.04";
35 inherit (src.meta) homepage;
36 license = lib.licenses.mit;
37 maintainers = [ lib.maintainers.vbgl ];