94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
56 lines
979 B
Nix
56 lines
979 B
Nix
{ lib
|
|
, fetchFromGitLab
|
|
, buildDunePackage
|
|
, ppx_hash
|
|
, either
|
|
, ezjsonm
|
|
, zarith
|
|
, zarith_stubs_js ? null
|
|
, hex
|
|
, json-data-encoding
|
|
, json-data-encoding-bson
|
|
, alcotest
|
|
, crowbar
|
|
, ppx_expect
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "data-encoding";
|
|
version = "0.7.1";
|
|
|
|
duneVersion = "3";
|
|
minimalOCamlVersion = "4.10";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "nomadic-labs";
|
|
repo = "data-encoding";
|
|
rev = "v${version}";
|
|
hash = "sha256-V3XiCCtoU+srOI+KVSJshtaSJLBJ4m4o10GpBfdYKCU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
either
|
|
ezjsonm
|
|
ppx_hash
|
|
zarith
|
|
zarith_stubs_js
|
|
hex
|
|
json-data-encoding
|
|
json-data-encoding-bson
|
|
];
|
|
|
|
checkInputs = [
|
|
alcotest
|
|
crowbar
|
|
ppx_expect
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|