2022-09-22 12:36:57 +00:00
|
|
|
{ buildDunePackage, mirage-crypto, ounit2, randomconv, dune-configurator
|
2024-01-13 08:15:51 +00:00
|
|
|
, cstruct, duration, logs }:
|
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";
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
inherit (mirage-crypto) version src;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ ounit2 randomconv ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
buildInputs = [ dune-configurator ];
|
2024-01-13 08:15:51 +00:00
|
|
|
propagatedBuildInputs = [ cstruct mirage-crypto duration logs ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
strictDeps = true;
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = mirage-crypto.meta // {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Cryptographically secure PRNG";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|