3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/atdgen/default.nix
2021-02-25 08:04:35 +01:00

27 lines
534 B
Nix

{ buildDunePackage, atd, biniou, yojson }:
let runtime =
buildDunePackage {
pname = "atdgen-runtime";
inherit (atd) version useDune2 src;
propagatedBuildInputs = [ biniou yojson ];
meta = { inherit (atd.meta) license; };
}
; in
buildDunePackage {
pname = "atdgen";
inherit (atd) version useDune2 src;
buildInputs = [ atd ];
propagatedBuildInputs = [ runtime ];
meta = {
description = "Generates efficient JSON serializers, deserializers and validators";
inherit (atd.meta) license;
};
}