2021-07-12 09:29:43 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, buildDunePackage
|
2022-10-11 06:50:54 +00:00
|
|
|
, ppx_hash
|
|
|
|
, either
|
2021-07-12 09:29:43 +00:00
|
|
|
, ezjsonm
|
|
|
|
, zarith
|
2022-10-11 06:50:54 +00:00
|
|
|
, zarith_stubs_js
|
2021-07-12 09:29:43 +00:00
|
|
|
, hex
|
|
|
|
, json-data-encoding
|
|
|
|
, json-data-encoding-bson
|
|
|
|
, alcotest
|
|
|
|
, crowbar
|
2022-10-11 06:50:54 +00:00
|
|
|
, ppx_expect
|
2021-07-12 09:29:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "data-encoding";
|
2022-10-11 06:50:54 +00:00
|
|
|
version = "0.5.3";
|
2021-07-12 09:29:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "nomadic-labs";
|
|
|
|
repo = "data-encoding";
|
2022-10-11 06:50:54 +00:00
|
|
|
rev = "v0.5.3";
|
|
|
|
sha256 = "sha256-HMNpjh5x7vU/kXQNRjJtOvShEENoNuxjNNPBJfm+Rhg=";
|
2021-07-12 09:29:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-10-11 06:50:54 +00:00
|
|
|
either
|
2021-07-12 09:29:43 +00:00
|
|
|
ezjsonm
|
2022-10-11 06:50:54 +00:00
|
|
|
ppx_hash
|
2021-07-12 09:29:43 +00:00
|
|
|
zarith
|
2022-10-11 06:50:54 +00:00
|
|
|
zarith_stubs_js
|
2021-07-12 09:29:43 +00:00
|
|
|
hex
|
|
|
|
json-data-encoding
|
|
|
|
json-data-encoding-bson
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
alcotest
|
|
|
|
crowbar
|
2022-10-11 06:50:54 +00:00
|
|
|
ppx_expect
|
2021-07-12 09:29:43 +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 ];
|
|
|
|
};
|
|
|
|
}
|