2023-04-14 05:22:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
|
|
|
, cstruct
|
|
|
|
, dune-configurator
|
|
|
|
, fetchurl
|
|
|
|
, fmt
|
|
|
|
, optint
|
|
|
|
, mdx
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "uring";
|
2024-05-15 10:52:50 +00:00
|
|
|
version = "0.9";
|
2023-04-14 05:22:41 +00:00
|
|
|
|
|
|
|
minimalOCamlVersion = "4.12";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2023-05-16 04:14:09 +00:00
|
|
|
url = "https://github.com/ocaml-multicore/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz";
|
2024-05-15 10:52:50 +00:00
|
|
|
hash = "sha256-eXWIxfL9UsKKf4sanBjKfr6Od4fPDctVnkU+wjIXW0M=";
|
2023-04-14 05:22:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cstruct
|
|
|
|
fmt
|
|
|
|
optint
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dune-configurator
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mdx
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
mdx.bin
|
|
|
|
];
|
|
|
|
|
2024-11-10 21:12:31 +00:00
|
|
|
# Tests use io_uring, which is blocked by Lix's sandbox because it's
|
|
|
|
# opaque to seccomp.
|
|
|
|
doCheck = false;
|
2023-04-14 05:22:41 +00:00
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/ocaml-multicore/ocaml-${pname}";
|
|
|
|
changelog = "https://github.com/ocaml-multicore/ocaml-${pname}/raw/v${version}/CHANGES.md";
|
|
|
|
description = "Bindings to io_uring for OCaml";
|
|
|
|
license = with lib.licenses; [ isc mit ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ toastal ];
|
|
|
|
};
|
|
|
|
}
|