summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/mirage-crypto/rng-async.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/mirage-crypto/rng-async.nix')
-rw-r--r--pkgs/development/ocaml-modules/mirage-crypto/rng-async.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/mirage-crypto/rng-async.nix b/pkgs/development/ocaml-modules/mirage-crypto/rng-async.nix
new file mode 100644
index 000000000000..e8c8dd06eab5
--- /dev/null
+++ b/pkgs/development/ocaml-modules/mirage-crypto/rng-async.nix
@@ -0,0 +1,25 @@
+{ lib, buildDunePackage
+, mirage-crypto, mirage-crypto-rng
+, dune-configurator, async, logs
+}:
+
+buildDunePackage {
+ pname = "mirage-crypto-rng-async";
+
+ inherit (mirage-crypto) useDune2 version minimumOCamlVersion src;
+
+ nativeBuildInputs = [
+ dune-configurator
+ ];
+
+ propagatedBuildInputs = [
+ async
+ logs
+ mirage-crypto
+ mirage-crypto-rng
+ ];
+
+ meta = mirage-crypto.meta // {
+ description = "Feed the entropy source in an Async-friendly way";
+ };
+}