diff --git a/pkgs/development/ocaml-modules/tls/eio.nix b/pkgs/development/ocaml-modules/tls/eio.nix new file mode 100644 index 0000000000000..678893d4da29a --- /dev/null +++ b/pkgs/development/ocaml-modules/tls/eio.nix @@ -0,0 +1,36 @@ +{ + buildDunePackage, + crowbar, + eio, + eio_main, + logs, + mdx, + mirage-crypto-rng-eio, + ptime, + tls, +}: + +buildDunePackage rec { + pname = "tls-eio"; + + inherit (tls) src meta version; + + minimalOCamlVersion = "5.0"; + + doCheck = true; + nativeCheckInputs = [ + mdx.bin + ]; + checkInputs = [ + crowbar + eio_main + (mdx.override { inherit logs; }) + ]; + + propagatedBuildInputs = [ + ptime + eio + mirage-crypto-rng-eio + tls + ]; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 3431c113c2fb8..618e94b927211 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1844,6 +1844,8 @@ let tls-async = callPackage ../development/ocaml-modules/tls/async.nix { }; + tls-eio = callPackage ../development/ocaml-modules/tls/eio.nix { }; + tls-lwt = callPackage ../development/ocaml-modules/tls/lwt.nix { }; tls-mirage = callPackage ../development/ocaml-modules/tls/mirage.nix { };