mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
6620de7594
Atdgen is a command-line program that takes as input type definitions in the ATD syntax and produces OCaml code suitable for data serialization and deserialization. Homepage: https://github.com/mjambon/atd
27 lines
516 B
Nix
27 lines
516 B
Nix
{ buildDunePackage, atd, biniou, yojson }:
|
|
|
|
let runtime =
|
|
buildDunePackage {
|
|
pname = "atdgen-runtime";
|
|
inherit (atd) version src;
|
|
|
|
propagatedBuildInputs = [ biniou yojson ];
|
|
|
|
meta = { inherit (atd.meta) license; };
|
|
}
|
|
; in
|
|
|
|
buildDunePackage {
|
|
pname = "atdgen";
|
|
inherit (atd) version src;
|
|
|
|
buildInputs = [ atd ];
|
|
|
|
propagatedBuildInputs = [ runtime ];
|
|
|
|
meta = {
|
|
description = "Generates efficient JSON serializers, deserializers and validators";
|
|
inherit (atd.meta) license;
|
|
};
|
|
}
|