2021-07-07 11:34:04 +02:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
|
|
|
, ocaml
|
|
|
|
, tezos-stdlib
|
|
|
|
, tezos-protocol-environment
|
|
|
|
, ocp-ocamlres
|
2021-09-21 10:47:59 +02:00
|
|
|
, re
|
2021-07-07 11:34:04 +02:00
|
|
|
, pprint
|
|
|
|
}:
|
|
|
|
|
|
|
|
if lib.versionAtLeast ocaml.version "4.12" then
|
|
|
|
throw "tezos-protocol-compiler-${tezos-stdlib.version} is not available for OCaml > 4.10"
|
|
|
|
else
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "tezos-protocol-compiler";
|
2021-09-21 10:47:59 +02:00
|
|
|
inherit (tezos-stdlib) version useDune2;
|
|
|
|
src = "${tezos-stdlib.base_src}/src/lib_protocol_compiler";
|
2021-07-07 11:34:04 +02:00
|
|
|
|
2021-09-21 10:47:59 +02:00
|
|
|
minimalOCamlVersion = "4.10";
|
2021-07-07 11:34:04 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
tezos-protocol-environment
|
|
|
|
ocp-ocamlres
|
2021-09-21 10:47:59 +02:00
|
|
|
re
|
2021-07-07 11:34:04 +02:00
|
|
|
pprint
|
|
|
|
];
|
|
|
|
|
2021-09-21 10:47:59 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-07-07 11:34:04 +02:00
|
|
|
meta = tezos-stdlib.meta // {
|
|
|
|
description = "Tezos: economic-protocol compiler";
|
|
|
|
};
|
|
|
|
}
|