From f59f2daba3d5b7f4e7dd00132a7e013864975d88 Mon Sep 17 00:00:00 2001 From: Volker Diels-Grabsch Date: Fri, 6 Dec 2024 12:20:14 +0100 Subject: [PATCH] ocamlPackages.mirage-crypto-rng-eio: init at 1.1.0 --- .../ocaml-modules/mirage-crypto/rng-eio.nix | 30 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/ocaml-modules/mirage-crypto/rng-eio.nix 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 { };