2021-07-14 22:03:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
2022-10-21 18:38:19 +00:00
|
|
|
, ppx_hash
|
2024-04-21 15:54:59 +00:00
|
|
|
, bigstringaf
|
2022-10-21 18:38:19 +00:00
|
|
|
, either
|
2021-07-14 22:03:04 +00:00
|
|
|
, ezjsonm
|
|
|
|
, zarith
|
2023-03-30 22:05:00 +00:00
|
|
|
, zarith_stubs_js ? null
|
2021-07-14 22:03:04 +00:00
|
|
|
, hex
|
|
|
|
, json-data-encoding
|
|
|
|
, json-data-encoding-bson
|
2022-10-21 18:38:19 +00:00
|
|
|
, ppx_expect
|
2021-07-14 22:03:04 +00:00
|
|
|
}:
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
buildDunePackage rec {
|
2021-07-14 22:03:04 +00:00
|
|
|
pname = "data-encoding";
|
2024-04-21 15:54:59 +00:00
|
|
|
inherit (json-data-encoding) src version;
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
minimalOCamlVersion = "4.10";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
bigstringaf
|
2022-10-21 18:38:19 +00:00
|
|
|
either
|
2021-07-14 22:03:04 +00:00
|
|
|
ezjsonm
|
2022-10-21 18:38:19 +00:00
|
|
|
ppx_hash
|
2021-07-14 22:03:04 +00:00
|
|
|
zarith
|
2022-10-21 18:38:19 +00:00
|
|
|
zarith_stubs_js
|
2021-07-14 22:03:04 +00:00
|
|
|
hex
|
|
|
|
json-data-encoding
|
|
|
|
json-data-encoding-bson
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
buildInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
ppx_expect
|
2021-07-14 22:03:04 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://gitlab.com/nomadic-labs/data-encoding";
|
|
|
|
description = "Library of JSON and binary encoding combinators";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.ulrikstrid ];
|
|
|
|
};
|
|
|
|
}
|