about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/tezos/sapling.nix
blob: 59e61d49af0cfb04ea1c6928174177c2f3b2fb24 (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
{ lib
, buildDunePackage
, ocaml
, tezos-stdlib
, tezos-crypto
, tezos-rust-libs
, tezos-base-test-helpers
, alcotest-lwt
}:

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

  propagatedBuildInputs = [
    tezos-crypto
    tezos-rust-libs
  ];

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

  # requires the "zcash-params" files
  doCheck = false;

  # This is a hack to work around the hack used in the dune files
  OPAM_SWITCH_PREFIX = "${tezos-rust-libs}";

  meta = tezos-stdlib.meta // {
    description = "Tezos/Protocol: economic-protocol definition";
  };
}