depot/third_party/nixpkgs/pkgs/development/ocaml-modules/backoff/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

24 lines
611 B
Nix

{ lib, buildDunePackage, fetchurl, alcotest}:
buildDunePackage rec {
pname = "backoff";
version = "0.1.0";
src = fetchurl {
url = "https://github.com/ocaml-multicore/backoff/releases/download/${version}/backoff-${version}.tbz";
hash = "sha256-EaSseCKekNE03gaNiqh5Y11r8TF9XulR9AZboPWMIwA=";
};
doCheck = true;
checkInputs = [ alcotest ];
meta = {
description = "Exponential backoff mechanism for OCaml";
homepage = "https://github.com/ocaml-multicore/backoff";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
};
minimalOCamlVersion = "4.13";
}