2022-09-22 12:36:57 +00:00
|
|
|
{ buildDunePackage, ounit2, randomconv, mirage-crypto, mirage-crypto-rng
|
2024-07-01 15:47:52 +00:00
|
|
|
, cstruct, sexplib0, zarith, eqaf-cstruct, gmp }:
|
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-pk";
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
inherit (mirage-crypto) version src;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pk/dune --replace-warn eqaf.cstruct eqaf-cstruct
|
|
|
|
'';
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ gmp ];
|
|
|
|
propagatedBuildInputs = [ cstruct mirage-crypto mirage-crypto-rng
|
2024-07-01 15:47:52 +00:00
|
|
|
zarith eqaf-cstruct sexplib0 ];
|
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
|
|
|
|
|
|
|
meta = mirage-crypto.meta // {
|
|
|
|
description = "Simple public-key cryptography for the modern age";
|
|
|
|
};
|
|
|
|
}
|