1{
2 lib,
3 buildDunePackage,
4 ppx_hash,
5 bigstringaf,
6 either,
7 ezjsonm,
8 zarith,
9 zarith_stubs_js ? null,
10 hex,
11 json-data-encoding,
12 json-data-encoding-bson,
13 ppx_expect,
14}:
15
16buildDunePackage {
17 pname = "data-encoding";
18 inherit (json-data-encoding) src version;
19
20 minimalOCamlVersion = "4.10";
21
22 propagatedBuildInputs = [
23 bigstringaf
24 either
25 ezjsonm
26 ppx_hash
27 zarith
28 zarith_stubs_js
29 hex
30 json-data-encoding
31 json-data-encoding-bson
32 ];
33
34 buildInputs = [
35 ppx_expect
36 ];
37
38 meta = {
39 homepage = "https://gitlab.com/nomadic-labs/data-encoding";
40 description = "Library of JSON and binary encoding combinators";
41 license = lib.licenses.mit;
42 maintainers = [ lib.maintainers.ulrikstrid ];
43 };
44}