2022-07-14 12:49:19 +00:00
|
|
|
{ buildDunePackage, alcotest, atd, atdgen-codec-runtime, atdgen-runtime, biniou, re, yojson
|
|
|
|
, python3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "atdgen";
|
2022-04-27 09:35:20 +00:00
|
|
|
inherit (atdgen-codec-runtime) version src;
|
|
|
|
|
|
|
|
buildInputs = [ atd re ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [ atdgen-runtime ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
nativeCheckInputs = [ atd (python3.withPackages (ps: [ ps.jsonschema ]))];
|
|
|
|
checkInputs = [ alcotest atdgen-codec-runtime ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
meta = (builtins.removeAttrs atd.meta [ "mainProgram" ]) // {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Generates efficient JSON serializers, deserializers and validators";
|
|
|
|
};
|
|
|
|
}
|