2021-10-14 00:43:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
|
|
|
, bls12-381
|
2022-01-25 03:21:06 +00:00
|
|
|
, hex
|
|
|
|
, integers
|
2021-10-14 00:43:12 +00:00
|
|
|
, zarith
|
|
|
|
, alcotest
|
2022-01-25 03:21:06 +00:00
|
|
|
, bisect_ppx
|
|
|
|
, ff-pbt
|
2021-10-14 00:43:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "bls12-381-unix";
|
|
|
|
|
2022-01-25 03:21:06 +00:00
|
|
|
inherit (bls12-381) version src useDune2 doCheck;
|
2021-10-14 00:43:12 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bls12-381
|
2022-01-25 03:21:06 +00:00
|
|
|
hex
|
|
|
|
integers
|
|
|
|
zarith
|
2021-10-14 00:43:12 +00:00
|
|
|
];
|
|
|
|
|
2022-01-25 03:21:06 +00:00
|
|
|
checkInputs = [
|
|
|
|
alcotest
|
|
|
|
bisect_ppx
|
|
|
|
ff-pbt
|
|
|
|
];
|
2021-10-14 00:43:12 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "UNIX version of BLS12-381 primitives implementing the virtual package bls12-381";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|