1{ lib
2, fetchFromGitLab
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, alcotest
14, crowbar
15, ppx_expect
16}:
17
18buildDunePackage rec {
19 pname = "data-encoding";
20 inherit (json-data-encoding) src version;
21
22 minimalOCamlVersion = "4.10";
23
24 propagatedBuildInputs = [
25 bigstringaf
26 either
27 ezjsonm
28 ppx_hash
29 zarith
30 zarith_stubs_js
31 hex
32 json-data-encoding
33 json-data-encoding-bson
34 ];
35
36 buildInputs = [
37 ppx_expect
38 ];
39
40 meta = {
41 homepage = "https://gitlab.com/nomadic-labs/data-encoding";
42 description = "Library of JSON and binary encoding combinators";
43 license = lib.licenses.mit;
44 maintainers = [ lib.maintainers.ulrikstrid ];
45 };
46}