Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, buildDunePackage
3, cstruct
4, dune-configurator
5, fetchurl
6, fmt
7, optint
8, mdx
9}:
10
11buildDunePackage rec {
12 pname = "uring";
13 version = "0.6";
14
15 minimalOCamlVersion = "4.12";
16 duneVersion = "3";
17
18 src = fetchurl {
19 url = "https://github.com/ocaml-multicore/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz";
20 sha256 = "ZltD9JnF1lJs0xjWwFXBfWMP8e5XRhCaB2P4iqHFreo=";
21 };
22
23 propagatedBuildInputs = [
24 cstruct
25 fmt
26 optint
27 ];
28
29 buildInputs = [
30 dune-configurator
31 ];
32
33 checkInputs = [
34 mdx
35 ];
36
37 nativeCheckInputs = [
38 mdx.bin
39 ];
40
41 doCheck = true;
42
43 dontStrip = true;
44
45 meta = {
46 homepage = "https://github.com/ocaml-multicore/ocaml-${pname}";
47 changelog = "https://github.com/ocaml-multicore/ocaml-${pname}/raw/v${version}/CHANGES.md";
48 description = "Bindings to io_uring for OCaml";
49 license = with lib.licenses; [ isc mit ];
50 platforms = lib.platforms.linux;
51 maintainers = with lib.maintainers; [ toastal ];
52 };
53}