2020-05-21 00:57:24 +02:00
|
|
|
{ buildDunePackage, mirage-crypto, ounit, randomconv, dune-configurator
|
2020-06-19 17:52:53 +02:00
|
|
|
, cstruct, duration, logs, mtime, ocaml_lwt }:
|
2020-04-13 13:20:48 +02:00
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "mirage-crypto-rng";
|
|
|
|
|
2020-05-21 00:57:24 +02:00
|
|
|
inherit (mirage-crypto) version src useDune2 minimumOCamlVersion;
|
2020-04-13 13:20:48 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ ounit randomconv ];
|
|
|
|
|
2020-05-21 00:57:24 +02:00
|
|
|
nativeBuildInputs = [ dune-configurator ];
|
2020-06-19 17:52:53 +02:00
|
|
|
propagatedBuildInputs = [ cstruct mirage-crypto duration logs mtime ocaml_lwt ];
|
2020-04-13 13:20:48 +02:00
|
|
|
|
|
|
|
meta = mirage-crypto.meta // {
|
|
|
|
description = "A cryptographically secure PRNG";
|
|
|
|
};
|
|
|
|
}
|