mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
ocamlPackages.atdgen: init at 2.0.0
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
This commit is contained in:
parent
6a80140fdf
commit
6620de7594
2 changed files with 28 additions and 0 deletions
26
pkgs/development/ocaml-modules/atdgen/default.nix
Normal file
26
pkgs/development/ocaml-modules/atdgen/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ 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;
|
||||
};
|
||||
}
|
|
@ -54,6 +54,8 @@ let
|
|||
|
||||
atd = callPackage ../development/ocaml-modules/atd { };
|
||||
|
||||
atdgen = callPackage ../development/ocaml-modules/atdgen { };
|
||||
|
||||
base64 = callPackage ../development/ocaml-modules/base64 { };
|
||||
|
||||
bap = callPackage ../development/ocaml-modules/bap {
|
||||
|
|
Loading…
Reference in a new issue