2018-12-10 21:14:42 +01:00
|
|
|
{ buildDunePackage, atd, biniou, yojson }:
|
|
|
|
|
|
|
|
let runtime =
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "atdgen-runtime";
|
2021-02-18 22:36:28 +01:00
|
|
|
inherit (atd) version useDune2 src;
|
2018-12-10 21:14:42 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ biniou yojson ];
|
|
|
|
|
|
|
|
meta = { inherit (atd.meta) license; };
|
|
|
|
}
|
|
|
|
; in
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "atdgen";
|
2021-02-18 22:36:28 +01:00
|
|
|
inherit (atd) version useDune2 src;
|
2018-12-10 21:14:42 +01:00
|
|
|
|
|
|
|
buildInputs = [ atd ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ runtime ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Generates efficient JSON serializers, deserializers and validators";
|
|
|
|
inherit (atd.meta) license;
|
|
|
|
};
|
|
|
|
}
|