about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/tezos/protocol-compiler.nix
blob: a43356d9cbe340ea259e49754444513ed11be571 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ 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";
  };
}