summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/bls12-381/gen.nix
blob: d5d5dd8d9c8cecd6c27c0c625a6dce114bbd2654 (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
{
  lib,
  fetchFromGitLab,
  buildDunePackage,
  ff-sig,
  zarith,
}:

buildDunePackage (finalAttrs: {
  pname = "bls12-381-gen";
  version = "0.4.4";

  src = fetchFromGitLab {
    owner = "dannywillems";
    repo = "ocaml-bls12-381";
    rev = "${finalAttrs.version}-legacy";
    sha256 = "qocIfQdv9rniOUykRulu2zWsqkzT0OrsGczgVKALRuk=";
  };

  duneVersion = "3";

  minimalOCamlVersion = "4.08";

  propagatedBuildInputs = [
    ff-sig
    zarith
  ];

  doCheck = true;

  meta = {
    homepage = "https://gitlab.com/dannywillems/ocaml-bls12-381";
    description = "Functors to generate BLS12-381 primitives based on stubs";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.ulrikstrid ];
  };
})