2022-09-13 14:14:19 +02:00
|
|
|
{ buildDunePackage, mirage-crypto, ounit2, randomconv, dune-configurator
|
2024-01-10 14:59:40 +01:00
|
|
|
, cstruct, duration, logs }:
|
2020-04-13 13:20:48 +02:00
|
|
|
|
2022-02-22 10:59:04 +01:00
|
|
|
buildDunePackage rec {
|
2020-04-13 13:20:48 +02:00
|
|
|
pname = "mirage-crypto-rng";
|
|
|
|
|
2022-09-13 14:14:19 +02:00
|
|
|
inherit (mirage-crypto) version src;
|
2020-04-13 13:20:48 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
2022-03-01 16:42:22 +01:00
|
|
|
checkInputs = [ ounit2 randomconv ];
|
2020-04-13 13:20:48 +02:00
|
|
|
|
2022-02-22 10:59:04 +01:00
|
|
|
buildInputs = [ dune-configurator ];
|
2024-01-10 14:59:40 +01:00
|
|
|
propagatedBuildInputs = [ cstruct mirage-crypto duration logs ];
|
2020-04-13 13:20:48 +02:00
|
|
|
|
2022-03-01 16:42:22 +01:00
|
|
|
strictDeps = true;
|
2022-02-22 10:59:04 +01:00
|
|
|
|
2020-04-13 13:20:48 +02:00
|
|
|
meta = mirage-crypto.meta // {
|
|
|
|
description = "A cryptographically secure PRNG";
|
|
|
|
};
|
|
|
|
}
|