3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/tezos/protocol-compiler.nix
Ulrik Strid 5c96c4d284 ocamlPackages.tezos-*: init at 8.3
Init all tezos packages needed to build LIGO
2021-07-23 13:33:59 +02:00

30 lines
592 B
Nix

{ lib
, buildDunePackage
, ocaml
, tezos-stdlib
, tezos-protocol-environment
, ocp-ocamlres
, 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";
inherit (tezos-stdlib) version src useDune2 preBuild doCheck;
minimalOCamlVersion = "4.09";
propagatedBuildInputs = [
tezos-protocol-environment
ocp-ocamlres
pprint
];
meta = tezos-stdlib.meta // {
description = "Tezos: economic-protocol compiler";
};
}