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