9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
43 lines
897 B
Nix
43 lines
897 B
Nix
{ lib
|
|
, buildDunePackage
|
|
, fetchurl
|
|
, alcotest
|
|
, mdx
|
|
, thread-table
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "domain-local-await";
|
|
version = "0.2.1";
|
|
|
|
minimalOCamlVersion = "5.0";
|
|
duneVersion = "3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ocaml-multicore/${pname}/releases/download/${version}/${pname}-${version}.tbz";
|
|
sha256 = "LQxshVpk9EnO2adGXBamF8Hw8CVTAzJ7W4yKIkSmLm4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
thread-table
|
|
];
|
|
|
|
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/v${version}/CHANGES.md";
|
|
description = "A scheduler independent blocking mechanism";
|
|
license = with lib.licenses; [ bsd0 ];
|
|
maintainers = with lib.maintainers; [ toastal ];
|
|
};
|
|
}
|