mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 08:34:50 +00:00
2db064d028
ocamlPackages.lwt-canceler: 0.2 -> 0.3 ocamlPackages.json-data-encoding: 0.8 -> 0.10 ocamlPackages.data-encoding: 0.2.0 -> 0.4.0 ocamlPackages.ff-sig, ff-pbt: init at 0.6.1 ocamlPacakges.bls12-381: 0.3.15 -> 0.4.2 Co-authored-by: Vincent Laporte <vbgl@users.noreply.github.com>
35 lines
664 B
Nix
35 lines
664 B
Nix
{ lib
|
|
, buildDunePackage
|
|
, ocaml
|
|
, tezos-stdlib
|
|
, tezos-protocol-environment
|
|
, ocp-ocamlres
|
|
, re
|
|
, 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 useDune2;
|
|
src = "${tezos-stdlib.base_src}/src/lib_protocol_compiler";
|
|
|
|
minimalOCamlVersion = "4.10";
|
|
|
|
propagatedBuildInputs = [
|
|
tezos-protocol-environment
|
|
ocp-ocamlres
|
|
re
|
|
pprint
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = tezos-stdlib.meta // {
|
|
description = "Tezos: economic-protocol compiler";
|
|
};
|
|
}
|