summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/tezos-bls12-381-polynomial/default.nix
blob: 2d5c5c27494b42f72303985401b9c9d22b491a7c (plain) (blame)
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
{ lib
, fetchFromGitLab
, buildDunePackage
, bls12-381
, data-encoding
, bigstringaf
, alcotest
, alcotest-lwt
, bisect_ppx
, qcheck-alcotest
, ppx_repr
}:

buildDunePackage rec {
  pname = "tezos-bls12-381-polynomial";
  version = "1.0.1";
  duneVersion = "3";
  src = fetchFromGitLab {
    owner = "nomadic-labs/cryptography";
    repo = "privacy-team";
    rev = "v${version}";
    sha256 = "sha256-5qDa/fQoTypjaceQ0MBzt0rM+0hSJcpGlXMGAZKRboo=";
  };

  propagatedBuildInputs = [ ppx_repr bls12-381 data-encoding bigstringaf ];

  checkInputs = [ alcotest alcotest-lwt bisect_ppx qcheck-alcotest ];

  doCheck = false; # circular dependencies

  meta = {
    description = "Polynomials over BLS12-381 finite field";
    license = lib.licenses.mit;
    homepage = "https://gitlab.com/nomadic-labs/privacy-team";
    maintainers = [ lib.maintainers.ulrikstrid ];
  };
}