mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
1cc90fe92c
musl patch merged
54 lines
1002 B
Nix
54 lines
1002 B
Nix
{ lib
|
|
, buildDunePackage
|
|
, cstruct
|
|
, dune-configurator
|
|
, fetchurl
|
|
, fetchpatch
|
|
, fmt
|
|
, optint
|
|
, mdx
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "uring";
|
|
version = "0.9";
|
|
|
|
minimalOCamlVersion = "4.12";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ocaml-multicore/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz";
|
|
hash = "sha256-eXWIxfL9UsKKf4sanBjKfr6Od4fPDctVnkU+wjIXW0M=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|