2020-05-29 06:06:01 +00:00
|
|
|
{ buildDunePackage, mirage-crypto, ounit, randomconv, dune-configurator
|
2020-06-15 15:56:04 +00:00
|
|
|
, cstruct, duration, logs, mtime, ocaml_lwt }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
buildDunePackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mirage-crypto-rng";
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
inherit (mirage-crypto) version src useDune2 minimumOCamlVersion;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ ounit randomconv ];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
buildInputs = [ dune-configurator ];
|
2020-06-15 15:56:04 +00:00
|
|
|
propagatedBuildInputs = [ cstruct mirage-crypto duration logs mtime ocaml_lwt ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
strictDeps = !doCheck;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = mirage-crypto.meta // {
|
|
|
|
description = "A cryptographically secure PRNG";
|
|
|
|
};
|
|
|
|
}
|