2023-07-15 17:15:38 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl, ocaml
|
2021-08-27 14:25:00 +00:00
|
|
|
, dune-configurator
|
|
|
|
}:
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
|
|
|
|
"vlq is not available for OCaml ${ocaml.version}"
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "vlq";
|
|
|
|
version = "0.2.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/flowtype/ocaml-vlq/releases/download/v${version}/vlq-v${version}.tbz";
|
|
|
|
sha256 = "02wr9ph4q0nxmqgbc67ydf165hmrdv9b655krm2glc3ahb6larxi";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ dune-configurator ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "encoding variable-length quantities, in particular base64";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
homepage = "https://github.com/flowtype/ocaml-vlq";
|
|
|
|
maintainers = [ lib.maintainers.nomeata ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|