2021-07-12 11:29:43 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, buildDunePackage
|
|
|
|
, ezjsonm
|
|
|
|
, zarith
|
|
|
|
, hex
|
|
|
|
, json-data-encoding
|
|
|
|
, json-data-encoding-bson
|
|
|
|
, alcotest
|
|
|
|
, crowbar
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "data-encoding";
|
2021-09-21 10:47:59 +02:00
|
|
|
version = "0.4.0";
|
2021-07-12 11:29:43 +02:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "nomadic-labs";
|
|
|
|
repo = "data-encoding";
|
2021-09-21 10:47:59 +02:00
|
|
|
rev = "v0.4";
|
|
|
|
sha256 = "1f88l9azpfk730hps5v6zlg4yyyyhj1gl27qy3cbbkzjc82d2rhx";
|
2021-07-12 11:29:43 +02:00
|
|
|
};
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ezjsonm
|
|
|
|
zarith
|
|
|
|
hex
|
|
|
|
json-data-encoding
|
|
|
|
json-data-encoding-bson
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
alcotest
|
|
|
|
crowbar
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|