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