nixpkgs/pkgs/development/ocaml-modules/mirage-crypto/ec.nix
Vincent Laporte 5b9a398716
ocamlPackages.mirage-unix: 4.0.1 → 5.0.0
ocamlPackages.mirage-crypto: 0.10.5 → 0.10.6
2022-09-15 15:35:45 +02:00

57 lines
913 B
Nix

{ lib
, ocaml
, 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 rec {
pname = "mirage-crypto-ec";
inherit (mirage-crypto)
src
version;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
ocaml
dune-configurator
];
propagatedBuildInputs = [
cstruct
mirage-crypto
mirage-crypto-rng
] ++ lib.optionals withFreestanding [
ocaml-freestanding
];
strictDeps = !doCheck;
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";
};
}