9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
26 lines
701 B
Nix
26 lines
701 B
Nix
{ lib, buildDunePackage, fetchurl, ocaml
|
|
, dune-configurator
|
|
}:
|
|
|
|
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
|
|
"vlq is not available for OCaml ${ocaml.version}"
|
|
|
|
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 ];
|
|
};
|
|
|
|
}
|