38 lines
750 B
Nix
38 lines
750 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
buildDunePackage,
|
||
|
|
fetchurl,
|
||
|
|
nodejs-slim,
|
||
|
|
alcotest,
|
||
|
|
domain_shims,
|
||
|
|
js_of_ocaml,
|
||
|
|
}:
|
||
|
|
|
||
|
|
buildDunePackage rec {
|
||
|
|
pname = "multicore-magic";
|
||
|
|
version = "2.3.1";
|
||
|
|
|
||
|
|
src = fetchurl {
|
||
|
|
url = "https://github.com/ocaml-multicore/multicore-magic/releases/download/${version}/multicore-magic-${version}.tbz";
|
||
|
|
hash = "sha256-Adcgi9yfEhhygbBK04H6N9ozg3O6JJWrXrD1MxUcGV8=";
|
||
|
|
};
|
||
|
|
|
||
|
|
doCheck = true;
|
||
|
|
|
||
|
|
checkInputs = [
|
||
|
|
alcotest
|
||
|
|
domain_shims
|
||
|
|
];
|
||
|
|
nativeCheckInputs = [
|
||
|
|
nodejs-slim
|
||
|
|
js_of_ocaml
|
||
|
|
];
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
description = "Low-level multicore utilities for OCaml";
|
||
|
|
license = lib.licenses.isc;
|
||
|
|
homepage = "https://github.com/ocaml-multicore/multicore-magic";
|
||
|
|
maintainers = [ lib.maintainers.vbgl ];
|
||
|
|
};
|
||
|
|
}
|