1{ lib
2, fetchFromGitLab
3, buildDunePackage
4, ezjsonm
5, zarith
6, hex
7, json-data-encoding
8, json-data-encoding-bson
9, alcotest
10, crowbar
11}:
12
13buildDunePackage {
14 pname = "data-encoding";
15 version = "0.4.0";
16
17 src = fetchFromGitLab {
18 owner = "nomadic-labs";
19 repo = "data-encoding";
20 rev = "v0.4";
21 sha256 = "1f88l9azpfk730hps5v6zlg4yyyyhj1gl27qy3cbbkzjc82d2rhx";
22 };
23 useDune2 = true;
24
25 propagatedBuildInputs = [
26 ezjsonm
27 zarith
28 hex
29 json-data-encoding
30 json-data-encoding-bson
31 ];
32
33 checkInputs = [
34 alcotest
35 crowbar
36 ];
37
38 doCheck = true;
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}