1{
2 lib,
3 fetchurl,
4 buildDunePackage,
5 alcotest,
6 mdx,
7}:
8
9buildDunePackage rec {
10 pname = "thread-table";
11 version = "1.0.0";
12
13 minimalOCamlVersion = "4.08";
14
15 src = fetchurl {
16 url = "https://github.com/ocaml-multicore/${pname}/releases/download/${version}/${pname}-${version}.tbz";
17 sha256 = "pIzYhGNZfflELEuqaczAYJHKd7px5DjTYJ+64PO4Hd0=";
18 };
19
20 doCheck = true;
21
22 checkInputs = [
23 alcotest
24 mdx
25 ];
26
27 nativeCheckInputs = [
28 mdx.bin
29 ];
30
31 meta = {
32 homepage = "https://github.com/ocaml-multicore/ocaml-${pname}";
33 changelog = "https://github.com/ocaml-multicore/ocaml-${pname}/raw/${version}/CHANGES.md";
34 description = "Lock-free thread-safe integer keyed hash table";
35 license = with lib.licenses; [ isc ];
36 maintainers = with lib.maintainers; [ toastal ];
37 };
38}