2022-07-02 04:31:40 +00:00
|
|
|
{ buildDunePackage, alcotest, atd, atdgen-codec-runtime, atdgen-runtime, biniou, re, yojson
|
|
|
|
, python3
|
|
|
|
}:
|
2018-12-10 20:14:42 +00:00
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "atdgen";
|
2022-04-23 08:50:39 +00:00
|
|
|
inherit (atdgen-codec-runtime) version src;
|
|
|
|
|
|
|
|
buildInputs = [ atd re ];
|
2018-12-10 20:14:42 +00:00
|
|
|
|
2022-04-23 08:50:39 +00:00
|
|
|
propagatedBuildInputs = [ atdgen-runtime ];
|
2018-12-10 20:14:42 +00:00
|
|
|
|
2022-04-23 08:50:39 +00:00
|
|
|
doCheck = true;
|
2022-07-02 04:31:40 +00:00
|
|
|
checkInputs = [ alcotest atdgen-codec-runtime
|
|
|
|
(python3.withPackages (ps: [ ps.jsonschema ]))
|
|
|
|
];
|
2018-12-10 20:14:42 +00:00
|
|
|
|
2022-05-17 07:33:24 +00:00
|
|
|
meta = (builtins.removeAttrs atd.meta [ "mainProgram" ]) // {
|
2018-12-10 20:14:42 +00:00
|
|
|
description = "Generates efficient JSON serializers, deserializers and validators";
|
|
|
|
};
|
|
|
|
}
|