98eb3e9ef5
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
23 lines
636 B
Nix
23 lines
636 B
Nix
{ buildDunePackage, ounit2, randomconv, mirage-crypto, mirage-crypto-rng
|
|
, cstruct, sexplib0, zarith, eqaf-cstruct, gmp }:
|
|
|
|
buildDunePackage rec {
|
|
pname = "mirage-crypto-pk";
|
|
|
|
inherit (mirage-crypto) version src;
|
|
|
|
postPatch = ''
|
|
substituteInPlace pk/dune --replace-warn eqaf.cstruct eqaf-cstruct
|
|
'';
|
|
|
|
buildInputs = [ gmp ];
|
|
propagatedBuildInputs = [ cstruct mirage-crypto mirage-crypto-rng
|
|
zarith eqaf-cstruct sexplib0 ];
|
|
|
|
doCheck = true;
|
|
checkInputs = [ ounit2 randomconv ];
|
|
|
|
meta = mirage-crypto.meta // {
|
|
description = "Simple public-key cryptography for the modern age";
|
|
};
|
|
}
|