2020-05-20 23:57:24 +01:00
|
|
|
{ buildDunePackage, mirage-crypto, ounit, randomconv, dune-configurator
|
|
|
|
, cstruct, duration, logs, mtime, ocaml_lwt, mirage-runtime, mirage-time
|
|
|
|
, mirage-clock, mirage-time-unix, mirage-clock-unix, mirage-unix }:
|
2020-04-13 12:20:48 +01:00
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "mirage-crypto-rng";
|
|
|
|
|
2020-05-20 23:57:24 +01:00
|
|
|
inherit (mirage-crypto) version src useDune2 minimumOCamlVersion;
|
2020-04-13 12:20:48 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ ounit randomconv ];
|
|
|
|
|
2020-05-20 23:57:24 +01:00
|
|
|
nativeBuildInputs = [ dune-configurator ];
|
|
|
|
propagatedBuildInputs = [ cstruct mirage-crypto duration logs mtime ocaml_lwt
|
|
|
|
mirage-runtime mirage-time mirage-clock mirage-time-unix
|
|
|
|
mirage-clock-unix mirage-unix ];
|
2020-04-13 12:20:48 +01:00
|
|
|
|
|
|
|
meta = mirage-crypto.meta // {
|
|
|
|
description = "A cryptographically secure PRNG";
|
|
|
|
};
|
|
|
|
}
|