Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / ocaml-modules / domain-local-timeout / default.nix
blob1baef274006f48ba8da77362a6aa7bc4c7cf8578
1 { lib, buildDunePackage, ocaml, fetchurl
2 , mtime, psq, thread-table
3 , alcotest, mdx
4 , domain-local-await
5 }:
7 buildDunePackage rec {
8   pname = "domain-local-timeout";
9   version = "0.1.0";
11   minimalOCamlVersion = "4.12";
13   src = fetchurl {
14     url = "https://github.com/ocaml-multicore/domain-local-timeout/releases/download/${version}/domain-local-timeout-${version}.tbz";
15     hash = "sha256-UTqcHdGAN/LrvumPhW4Cy6RY8RJ/iVO5zTJKrhPRTjk=";
16   };
18   propagatedBuildInputs = [ mtime psq thread-table ];
20   doCheck = lib.versionAtLeast ocaml.version "5.0";
21   nativeCheckInputs = [ mdx.bin ];
22   checkInputs = [ alcotest domain-local-await mdx ];
24   meta = {
25     homepage = "https://github.com/ocaml-multicore/domain-local-timeout";
26     description = "A scheduler independent timeout mechanism";
27     license = lib.licenses.isc;
28     maintainers = [ lib.maintainers.vbgl ];
29   };