diff --git a/pkgs/development/ocaml-modules/mirage-crypto/rng-eio.nix b/pkgs/development/ocaml-modules/mirage-crypto/rng-eio.nix new file mode 100644 index 0000000000000..c832c29865194 --- /dev/null +++ b/pkgs/development/ocaml-modules/mirage-crypto/rng-eio.nix @@ -0,0 +1,30 @@ +{ + buildDunePackage, + mirage-crypto, + mirage-crypto-rng, + dune-configurator, + eio, + eio_main, + ohex, +}: + +buildDunePackage rec { + pname = "mirage-crypto-rng-eio"; + + inherit (mirage-crypto) version src; + + doCheck = true; + checkInputs = [ + eio_main + ohex + ]; + + buildInputs = [ dune-configurator ]; + propagatedBuildInputs = [ + mirage-crypto + mirage-crypto-rng + eio + ]; + + meta = mirage-crypto-rng.meta; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 5691515d8ba56..381bf12461d71 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1155,6 +1155,8 @@ let mirage-crypto-rng-async = callPackage ../development/ocaml-modules/mirage-crypto/rng-async.nix { }; + mirage-crypto-rng-eio = callPackage ../development/ocaml-modules/mirage-crypto/rng-eio.nix { }; + mirage-crypto-rng-lwt = callPackage ../development/ocaml-modules/mirage-crypto/rng-lwt.nix { }; mirage-crypto-rng-mirage = callPackage ../development/ocaml-modules/mirage-crypto/rng-mirage.nix { };