about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/tezos/protocol-010-PtGRANAD.nix
blob: 80809cafbab22967e94d6d381dc5047350e5d834 (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
{ lib
, buildDunePackage
, tezos-stdlib
, tezos-protocol-compiler
}:

buildDunePackage {
  pname = "tezos-protocol-010-PtGRANAD";
  inherit (tezos-stdlib) version useDune2;
  src = "${tezos-stdlib.base_src}/src/proto_010_PtGRANAD/lib_protocol";

  preBuild = ''
    rm dune
    cp -f ${tezos-protocol-compiler.src}/dune_protocol dune
    sed -i.back -e s/-nostdlib//g dune.inc
  '';

  buildInputs = [
    tezos-protocol-compiler
  ];

  doCheck = true;

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