1{ lib, fetchzip, buildDunePackage, ocaml
2, zarith, eqaf, bigarray-compat, hex, ff-sig, ff
3, alcotest, bisect_ppx
4}:
5
6buildDunePackage rec {
7 pname = "mec";
8 version = "0.1.0";
9 src = fetchzip {
10 url = "https://gitlab.com/nomadic-labs/cryptography/ocaml-ec/-/archive/${version}/ocaml-ec-${version}.tar.bz2";
11 sha256 = "sha256-uIcGj/exSfuuzsv6C/bnJXpYRu3OY3dcKMW/7+qwi2U=";
12 };
13
14 duneVersion = "3";
15
16 minimalOCamlVersion = "4.12";
17
18 propagatedBuildInputs = [
19 eqaf
20 bigarray-compat
21 hex
22 ff-sig
23 ff
24 alcotest
25 ];
26
27 buildInputs = [
28 zarith
29 ];
30
31 checkInputs = [
32 alcotest
33 bisect_ppx
34 ];
35
36 meta = {
37 description = "Mec - Mini Elliptic Curve library";
38 homepage = "https://gitlab.com/nomadic-labs/cryptography/ocaml-ec";
39 license = lib.licenses.mit;
40 maintainers = [ lib.maintainers.ulrikstrid ];
41 };
42}