about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/tezos/protocol-compiler.nix
blob: 6178fb6c0811f1dfb78f4b69a2661e6f58122805 (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
30
31
32
33
34
{ 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";
  };
}