nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDunePackage,
4 ocaml,
5 fetchurl,
6 mtime,
7 psq,
8 thread-table,
9 alcotest,
10 mdx,
11 domain-local-await,
12}:
13
14buildDunePackage rec {
15 pname = "domain-local-timeout";
16 version = "1.0.1";
17
18 minimalOCamlVersion = "4.12";
19
20 src = fetchurl {
21 url = "https://github.com/ocaml-multicore/domain-local-timeout/releases/download/${version}/domain-local-timeout-${version}.tbz";
22 hash = "sha256-6sCqUkOjN8E+7OLUwVQntkv0vrQDkGDV8KNqDhVm0d8=";
23 };
24
25 propagatedBuildInputs = [
26 mtime
27 psq
28 thread-table
29 ];
30
31 doCheck = lib.versionAtLeast ocaml.version "5.1";
32 nativeCheckInputs = [ mdx.bin ];
33 checkInputs = [
34 alcotest
35 domain-local-await
36 mdx
37 ];
38
39 meta = {
40 homepage = "https://github.com/ocaml-multicore/domain-local-timeout";
41 description = "Scheduler independent timeout mechanism";
42 license = lib.licenses.isc;
43 maintainers = [ lib.maintainers.vbgl ];
44 };
45}