lol
1{ lib
2, buildDunePackage
3, ocaml
4, tezos-stdlib
5, tezos-protocol-environment
6, ocp-ocamlres
7, re
8, pprint
9}:
10
11if lib.versionAtLeast ocaml.version "4.12" then
12 throw "tezos-protocol-compiler-${tezos-stdlib.version} is not available for OCaml > 4.10"
13else
14
15buildDunePackage {
16 pname = "tezos-protocol-compiler";
17 inherit (tezos-stdlib) version useDune2;
18 src = "${tezos-stdlib.base_src}/src/lib_protocol_compiler";
19
20 minimalOCamlVersion = "4.10";
21
22 propagatedBuildInputs = [
23 tezos-protocol-environment
24 ocp-ocamlres
25 re
26 pprint
27 ];
28
29 doCheck = true;
30
31 meta = tezos-stdlib.meta // {
32 description = "Tezos: economic-protocol compiler";
33 };
34}