2022-10-21 18:38:19 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitLab
|
|
|
|
, ff-sig, zarith, zarith_stubs_js, integers_stubs_js, integers, hex
|
2023-02-09 11:40:11 +00:00
|
|
|
, alcotest, ff-pbt
|
|
|
|
}:
|
2021-07-16 19:40:57 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "bls12-381";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "5.0.0";
|
2022-01-25 03:21:06 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "dannywillems";
|
|
|
|
repo = "ocaml-bls12-381";
|
2022-10-21 18:38:19 +00:00
|
|
|
rev = version;
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "sha256-Hy/I+743HSToZgGPFFiAbx7nrybHsE2PwycDsu3DuHM=";
|
2022-01-25 03:21:06 +00:00
|
|
|
};
|
|
|
|
|
2021-07-16 19:40:57 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-03-24 00:07:29 +00:00
|
|
|
duneVersion = "3";
|
2022-01-25 03:21:06 +00:00
|
|
|
|
2021-07-16 19:40:57 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-10-14 00:43:12 +00:00
|
|
|
ff-sig
|
2021-07-16 19:40:57 +00:00
|
|
|
zarith
|
2022-10-21 18:38:19 +00:00
|
|
|
zarith_stubs_js
|
|
|
|
integers_stubs_js
|
|
|
|
integers
|
|
|
|
hex
|
2021-07-16 19:40:57 +00:00
|
|
|
];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest ff-pbt ];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2022-01-25 03:21:06 +00:00
|
|
|
doCheck = true;
|
2021-07-16 19:40:57 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://gitlab.com/dannywillems/ocaml-bls12-381";
|
|
|
|
description = "OCaml binding for bls12-381 from librustzcash";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.ulrikstrid ];
|
|
|
|
};
|
|
|
|
}
|