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