2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
2022-03-05 16:20:37 +00:00
|
|
|
, ocaml
|
2021-04-05 15:23:46 +00:00
|
|
|
, 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
|
|
|
|
}:
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
buildDunePackage rec {
|
2021-04-05 15:23:46 +00:00
|
|
|
pname = "mirage-crypto-ec";
|
|
|
|
|
|
|
|
inherit (mirage-crypto)
|
|
|
|
src
|
2022-09-22 12:36:57 +00:00
|
|
|
version;
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
duneVersion = "3";
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
2021-04-05 15:23:46 +00:00
|
|
|
dune-configurator
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cstruct
|
|
|
|
mirage-crypto
|
|
|
|
mirage-crypto-rng
|
|
|
|
] ++ lib.optionals withFreestanding [
|
|
|
|
ocaml-freestanding
|
|
|
|
];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
strictDeps = true;
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [
|
2021-04-05 15:23:46 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|