depot/third_party/nixpkgs/pkgs/development/ocaml-modules/thread-table/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

37 lines
809 B
Nix

{ lib
, fetchurl
, buildDunePackage
, alcotest
, mdx
}:
buildDunePackage rec {
pname = "thread-table";
version = "1.0.0";
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/ocaml-multicore/${pname}/releases/download/${version}/${pname}-${version}.tbz";
sha256 = "pIzYhGNZfflELEuqaczAYJHKd7px5DjTYJ+64PO4Hd0=";
};
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 = "A lock-free thread-safe integer keyed hash table";
license = with lib.licenses; [ isc ];
maintainers = with lib.maintainers; [ toastal ];
};
}