1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 ocplib-endian,
6 yojson,
7}:
8
9buildDunePackage rec {
10 pname = "cbor";
11 version = "0.5";
12
13 minimalOCamlVersion = "4.07.0";
14
15 src = fetchurl {
16 url = "https://github.com/ygrek/ocaml-cbor/releases/download/${version}/ocaml-cbor-${version}.tar.gz";
17 hash = "sha256-4mpm/fv9X5uFRQO8XqBhOpxYwZreEtJ3exIwN6YulKM=";
18 };
19
20 propagatedBuildInputs = [
21 ocplib-endian
22 ];
23
24 doCheck = true;
25 checkInputs = [
26 yojson
27 ];
28
29 meta = {
30 description = "CBOR encoder/decoder (RFC 7049) - native OCaml implementation";
31 homepage = "https://github.com/ygrek/ocaml-cbor";
32 license = lib.licenses.mit;
33 maintainers = with lib.maintainers; [ infinidoge ];
34 };
35}