2021-09-21 09:47:59 +01:00
|
|
|
{ lib, fetchFromGitLab, buildDunePackage, ff-sig, zarith }:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "bls12-381-gen";
|
2022-01-23 20:24:16 +00:00
|
|
|
version = "0.4.4";
|
2021-09-21 09:47:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
2022-01-23 20:24:16 +00:00
|
|
|
owner = "dannywillems";
|
|
|
|
repo = "ocaml-bls12-381";
|
|
|
|
rev = "${version}-legacy";
|
|
|
|
sha256 = "qocIfQdv9rniOUykRulu2zWsqkzT0OrsGczgVKALRuk=";
|
2021-09-21 09:47:59 +01:00
|
|
|
};
|
2022-01-23 20:24:16 +00:00
|
|
|
|
2021-09-21 09:47:59 +01:00
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|