1{ lib
2, fetchFromGitLab
3, buildDunePackage
4, ppx_hash
5, either
6, ezjsonm
7, zarith
8, zarith_stubs_js
9, hex
10, json-data-encoding
11, json-data-encoding-bson
12, alcotest
13, crowbar
14, ppx_expect
15}:
16
17buildDunePackage {
18 pname = "data-encoding";
19 version = "0.5.3";
20
21 src = fetchFromGitLab {
22 owner = "nomadic-labs";
23 repo = "data-encoding";
24 rev = "v0.5.3";
25 sha256 = "sha256-HMNpjh5x7vU/kXQNRjJtOvShEENoNuxjNNPBJfm+Rhg=";
26 };
27
28 propagatedBuildInputs = [
29 either
30 ezjsonm
31 ppx_hash
32 zarith
33 zarith_stubs_js
34 hex
35 json-data-encoding
36 json-data-encoding-bson
37 ];
38
39 checkInputs = [
40 alcotest
41 crowbar
42 ppx_expect
43 ];
44
45 doCheck = true;
46
47 meta = {
48 homepage = "https://gitlab.com/nomadic-labs/data-encoding";
49 description = "Library of JSON and binary encoding combinators";
50 license = lib.licenses.mit;
51 maintainers = [ lib.maintainers.ulrikstrid ];
52 };
53}