summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/tezos/protocol-environment.nix
blob: f3e8bc42c54c0ccc919717eeb8cb3a46cd755d8d (plain) (blame)
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
38
39
40
41
42
43
{ lib
, ocaml
, buildDunePackage
, bls12-381
, bls12-381-legacy
, tezos-stdlib
, tezos-base
, tezos-sapling
, tezos-context
, tezos-protocol-environment-sigs
, tezos-protocol-environment-structs
, tezos-test-helpers
, zarith
, alcotest-lwt
}:

buildDunePackage {
  pname = "tezos-protocol-environment";
  inherit (tezos-stdlib) version useDune2;
  src = "${tezos-stdlib.base_src}/src/lib_protocol_environment";

  propagatedBuildInputs = [
    bls12-381
    bls12-381-legacy
    tezos-sapling
    tezos-base
    tezos-context
    tezos-protocol-environment-sigs
    tezos-protocol-environment-structs
    zarith # this might break, since they actually want 1.11
  ];

  checkInputs = [
    alcotest-lwt
    tezos-test-helpers
  ];

  doCheck = true;

  meta = tezos-stdlib.meta // {
    description = "Tezos: custom economic-protocols environment implementation for `tezos-client` and testing";
  };
}