1{
2 lib,
3 fetchFromGitLab,
4 buildDunePackage,
5 hex,
6 uri,
7}:
8
9buildDunePackage rec {
10 pname = "json-data-encoding";
11 version = "1.0.1";
12 minimalOCamlVersion = "4.10";
13 src = fetchFromGitLab {
14 owner = "nomadic-labs";
15 repo = "data-encoding";
16 rev = "v${version}";
17 hash = "sha256-KoA4xX4tNyi6bX5kso/Wof1LA7431EXJ34eD5X4jnd8=";
18 };
19
20 propagatedBuildInputs = [
21 hex
22 uri
23 ];
24
25 meta = {
26 homepage = "https://gitlab.com/nomadic-labs/json-data-encoding";
27 description = "Type-safe encoding to and decoding from JSON";
28 license = lib.licenses.lgpl3;
29 maintainers = [ lib.maintainers.ulrikstrid ];
30 };
31}