bba55970ba
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
55 lines
890 B
Nix
55 lines
890 B
Nix
{ lib
|
|
, buildDunePackage
|
|
, mirage-crypto
|
|
, dune-configurator
|
|
, pkg-config
|
|
, cstruct
|
|
, mirage-crypto-rng
|
|
, mirage-crypto-pk
|
|
, hex
|
|
, alcotest
|
|
, asn1-combinators
|
|
, ppx_deriving_yojson
|
|
, ppx_deriving
|
|
, yojson
|
|
, withFreestanding ? false
|
|
, ocaml-freestanding
|
|
}:
|
|
|
|
buildDunePackage {
|
|
pname = "mirage-crypto-ec";
|
|
|
|
inherit (mirage-crypto)
|
|
minimumOCamlVersion
|
|
src
|
|
version
|
|
useDune2
|
|
;
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
dune-configurator
|
|
];
|
|
propagatedBuildInputs = [
|
|
cstruct
|
|
mirage-crypto
|
|
mirage-crypto-rng
|
|
] ++ lib.optionals withFreestanding [
|
|
ocaml-freestanding
|
|
];
|
|
|
|
doCheck = true;
|
|
checkInputs = [
|
|
hex
|
|
alcotest
|
|
asn1-combinators
|
|
ppx_deriving_yojson
|
|
ppx_deriving
|
|
yojson
|
|
mirage-crypto-pk
|
|
];
|
|
|
|
meta = mirage-crypto.meta // {
|
|
description = "Elliptic Curve Cryptography with primitives taken from Fiat";
|
|
};
|
|
}
|