2023-06-21 10:29:26 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, buildDunePackage
|
|
|
|
, alcotest
|
|
|
|
, mdx
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "thread-table";
|
2023-08-13 08:40:15 +00:00
|
|
|
version = "1.0.0";
|
2023-06-21 10:29:26 +00:00
|
|
|
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocaml-multicore/${pname}/releases/download/${version}/${pname}-${version}.tbz";
|
2023-08-13 08:40:15 +00:00
|
|
|
sha256 = "pIzYhGNZfflELEuqaczAYJHKd7px5DjTYJ+64PO4Hd0=";
|
2023-06-21 10:29:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
alcotest
|
|
|
|
mdx
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
mdx.bin
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/ocaml-multicore/ocaml-${pname}";
|
|
|
|
changelog = "https://github.com/ocaml-multicore/ocaml-${pname}/raw/${version}/CHANGES.md";
|
|
|
|
description = "Lock-free thread-safe integer keyed hash table";
|
|
|
|
license = with lib.licenses; [ isc ];
|
|
|
|
maintainers = with lib.maintainers; [ toastal ];
|
|
|
|
};
|
|
|
|
}
|