depot/pkgs/development/ocaml-modules/mirage-crypto/ec.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

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";
};
}