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-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ alcotest atdgen-codec-runtime
|
2022-07-14 12:49:19 +00:00
|
|
|
(python3.withPackages (ps: [ ps.jsonschema ]))
|
|
|
|
];
|
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";
|
|
|
|
};
|
|
|
|
}
|