1{ lib
2, fetchurl
3, buildDunePackage
4, saturn
5, domain-local-await
6, kcas
7, mirage-clock-unix
8, qcheck-stm
9}:
10
11buildDunePackage rec {
12 pname = "domainslib";
13 version = "0.5.1";
14
15 minimalOCamlVersion = "5.0";
16
17 src = fetchurl {
18 url = "https://github.com/ocaml-multicore/domainslib/releases/download/${version}/domainslib-${version}.tbz";
19 hash = "sha256-KMJd+6XZmUSXNsXW/KXgvnFtgY9vODeW3vhL77mDXQE=";
20 };
21
22 propagatedBuildInputs = [ domain-local-await saturn ];
23
24 doCheck = true;
25 checkInputs = [ kcas mirage-clock-unix qcheck-stm ];
26
27 meta = {
28 homepage = "https://github.com/ocaml-multicore/domainslib";
29 description = "Nested-parallel programming";
30 license = lib.licenses.isc;
31 maintainers = [ lib.maintainers.vbgl ];
32 };
33}