summaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/data-encoding/default.nix
blob: 5172e6974083bb2fd5b9dd32f69b7d07e756e432 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  lib,
  buildDunePackage,
  ppx_hash,
  bigstringaf,
  either,
  ezjsonm,
  zarith,
  zarith_stubs_js ? null,
  hex,
  json-data-encoding,
  json-data-encoding-bson,
  ppx_expect,
}:

buildDunePackage {
  pname = "data-encoding";
  inherit (json-data-encoding) src version;

  minimalOCamlVersion = "4.10";

  propagatedBuildInputs = [
    bigstringaf
    either
    ezjsonm
    ppx_hash
    zarith
    zarith_stubs_js
    hex
    json-data-encoding
    json-data-encoding-bson
  ];

  buildInputs = [
    ppx_expect
  ];

  meta = {
    homepage = "https://gitlab.com/nomadic-labs/data-encoding";
    description = "Library of JSON and binary encoding combinators";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.ulrikstrid ];
  };
}