2022-09-13 12:14:19 +00:00
|
|
|
{ buildDunePackage, mirage-crypto, ounit2, randomconv, dune-configurator
|
2020-06-19 15:52:53 +00:00
|
|
|
, cstruct, duration, logs, mtime, ocaml_lwt }:
|
2020-04-13 11:20:48 +00:00
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
buildDunePackage rec {
|
2020-04-13 11:20:48 +00:00
|
|
|
pname = "mirage-crypto-rng";
|
|
|
|
|
2022-09-13 12:14:19 +00:00
|
|
|
inherit (mirage-crypto) version src;
|
2020-04-13 11:20:48 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2022-09-13 12:14:19 +00:00
|
|
|
checkInputs = [ ounit2 randomconv ];
|
2020-04-13 11:20:48 +00:00
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
buildInputs = [ dune-configurator ];
|
2020-06-19 15:52:53 +00:00
|
|
|
propagatedBuildInputs = [ cstruct mirage-crypto duration logs mtime ocaml_lwt ];
|
2020-04-13 11:20:48 +00:00
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
strictDeps = !doCheck;
|
|
|
|
|
2020-04-13 11:20:48 +00:00
|
|
|
meta = mirage-crypto.meta // {
|
|
|
|
description = "A cryptographically secure PRNG";
|
|
|
|
};
|
|
|
|
}
|