2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
|
|
|
, cstruct
|
|
|
|
, dune-configurator
|
|
|
|
, fetchurl
|
|
|
|
, fmt
|
|
|
|
, optint
|
|
|
|
, mdx
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "uring";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.6";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
minimalOCamlVersion = "4.12";
|
|
|
|
duneVersion = "3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2023-05-24 13:37:59 +00:00
|
|
|
url = "https://github.com/ocaml-multicore/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz";
|
|
|
|
sha256 = "ZltD9JnF1lJs0xjWwFXBfWMP8e5XRhCaB2P4iqHFreo=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cstruct
|
|
|
|
fmt
|
|
|
|
optint
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dune-configurator
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mdx
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
mdx.bin
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|