mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
2db064d028
ocamlPackages.lwt-canceler: 0.2 -> 0.3 ocamlPackages.json-data-encoding: 0.8 -> 0.10 ocamlPackages.data-encoding: 0.2.0 -> 0.4.0 ocamlPackages.ff-sig, ff-pbt: init at 0.6.1 ocamlPacakges.bls12-381: 0.3.15 -> 0.4.2 Co-authored-by: Vincent Laporte <vbgl@users.noreply.github.com>
49 lines
759 B
Nix
49 lines
759 B
Nix
{ lib
|
|
, buildDunePackage
|
|
, rustc
|
|
, cargo
|
|
, dune-configurator
|
|
, bls12-381
|
|
, bls12-381-gen
|
|
, ff-pbt
|
|
, ff-sig
|
|
, zarith
|
|
, ctypes
|
|
, tezos-rust-libs
|
|
, alcotest
|
|
}:
|
|
|
|
buildDunePackage {
|
|
pname = "bls12-381-unix";
|
|
|
|
inherit (bls12-381-gen) version src useDune2 doCheck;
|
|
|
|
checkInputs = [
|
|
alcotest
|
|
ff-pbt
|
|
];
|
|
|
|
buildInputs = [
|
|
rustc
|
|
cargo
|
|
dune-configurator
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
ff-sig
|
|
zarith
|
|
ctypes
|
|
bls12-381-gen
|
|
bls12-381
|
|
tezos-rust-libs
|
|
];
|
|
|
|
# This is a hack to work around the hack used in the dune files
|
|
OPAM_SWITCH_PREFIX = "${tezos-rust-libs}";
|
|
|
|
meta = {
|
|
description = "UNIX version of BLS12-381 primitives implementing the virtual package bls12-381";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|