about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/atdgen/default.nix
blob: d8ef2fec999002cc4d244a5611bb3ed79679e5ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
  };
}