git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
54 lines
891 B
Nix
54 lines
891 B
Nix
{ lib
|
|
, buildDunePackage
|
|
, mirage-crypto
|
|
, dune-configurator
|
|
, pkg-config
|
|
, mirage-crypto-rng
|
|
, mirage-crypto-pk
|
|
, alcotest
|
|
, asn1-combinators
|
|
, ohex
|
|
, ounit2
|
|
, ppx_deriving_yojson
|
|
, ppx_deriving
|
|
, yojson
|
|
, withFreestanding ? false
|
|
, ocaml-freestanding
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "mirage-crypto-ec";
|
|
|
|
inherit (mirage-crypto)
|
|
src
|
|
version;
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [
|
|
dune-configurator
|
|
];
|
|
propagatedBuildInputs = [
|
|
mirage-crypto
|
|
mirage-crypto-rng
|
|
] ++ lib.optionals withFreestanding [
|
|
ocaml-freestanding
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
doCheck = true;
|
|
checkInputs = [
|
|
alcotest
|
|
asn1-combinators
|
|
ohex
|
|
ounit2
|
|
ppx_deriving_yojson
|
|
ppx_deriving
|
|
yojson
|
|
mirage-crypto-pk
|
|
];
|
|
|
|
meta = mirage-crypto.meta // {
|
|
description = "Elliptic Curve Cryptography with primitives taken from Fiat";
|
|
};
|
|
}
|