b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
52 lines
989 B
Nix
52 lines
989 B
Nix
{ lib
|
|
, buildDunePackage
|
|
, cstruct
|
|
, dune-configurator
|
|
, fetchurl
|
|
, fmt
|
|
, optint
|
|
, mdx
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "uring";
|
|
version = "0.8";
|
|
|
|
minimalOCamlVersion = "4.12";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ocaml-multicore/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz";
|
|
hash = "sha256-4OGst19vqEzuNVxO5xxtzS+mEilEBFoEc7lC3j3sTk4=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|