2021-07-14 22:03:04 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, buildDunePackage
|
2022-10-21 18:38:19 +00:00
|
|
|
, ppx_hash
|
|
|
|
, either
|
2021-07-14 22:03:04 +00:00
|
|
|
, ezjsonm
|
|
|
|
, 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
|
|
|
|
, alcotest
|
|
|
|
, crowbar
|
2022-10-21 18:38:19 +00:00
|
|
|
, ppx_expect
|
2021-07-14 22:03:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "data-encoding";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "0.5.3";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "nomadic-labs";
|
|
|
|
repo = "data-encoding";
|
2022-10-21 18:38:19 +00:00
|
|
|
rev = "v0.5.3";
|
|
|
|
sha256 = "sha256-HMNpjh5x7vU/kXQNRjJtOvShEENoNuxjNNPBJfm+Rhg=";
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
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
|
|
|
|
];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [
|
2021-07-14 22:03:04 +00:00
|
|
|
alcotest
|
|
|
|
crowbar
|
2022-10-21 18:38:19 +00:00
|
|
|
ppx_expect
|
2021-07-14 22:03:04 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|