summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/mec/default.nix
blob: 5e5f5dab15a9ee4cfa780f3bbf2b5a5bf2db699a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
  lib,
  fetchzip,
  buildDunePackage,
  zarith,
  eqaf,
  bigarray-compat,
  hex,
  ff-sig,
  ff,
  alcotest,
  bisect_ppx,
}:

buildDunePackage (finalAttrs: {
  pname = "mec";
  version = "0.1.0";
  src = fetchzip {
    url = "https://gitlab.com/nomadic-labs/cryptography/ocaml-ec/-/archive/${finalAttrs.version}/ocaml-ec-${finalAttrs.version}.tar.bz2";
    sha256 = "sha256-uIcGj/exSfuuzsv6C/bnJXpYRu3OY3dcKMW/7+qwi2U=";
  };

  duneVersion = "3";

  minimalOCamlVersion = "4.12";

  propagatedBuildInputs = [
    eqaf
    bigarray-compat
    hex
    ff-sig
    ff
    alcotest
  ];

  buildInputs = [
    zarith
  ];

  checkInputs = [
    alcotest
    bisect_ppx
  ];

  meta = {
    description = "Mec - Mini Elliptic Curve library";
    homepage = "https://gitlab.com/nomadic-labs/cryptography/ocaml-ec";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.ulrikstrid ];
  };
})