2021-07-24 12:14:16 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
|
|
|
, ocaml
|
|
|
|
, tezos-stdlib
|
|
|
|
, tezos-protocol-environment
|
|
|
|
, ocp-ocamlres
|
2021-10-14 00:43:12 +00:00
|
|
|
, re
|
2021-07-24 12:14:16 +00: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-10-14 00:43:12 +00:00
|
|
|
inherit (tezos-stdlib) version useDune2;
|
|
|
|
src = "${tezos-stdlib.base_src}/src/lib_protocol_compiler";
|
2021-07-24 12:14:16 +00:00
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
minimalOCamlVersion = "4.10";
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
tezos-protocol-environment
|
|
|
|
ocp-ocamlres
|
2021-10-14 00:43:12 +00:00
|
|
|
re
|
2021-07-24 12:14:16 +00:00
|
|
|
pprint
|
|
|
|
];
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
meta = tezos-stdlib.meta // {
|
|
|
|
description = "Tezos: economic-protocol compiler";
|
|
|
|
};
|
|
|
|
}
|