diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-07-23 12:01:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 12:01:27 +0000 |
commit | 55a4a2d60a420ca83f31e3f659beb295fd6b8626 (patch) | |
tree | 9cc208b4782113ac800c2b80221e0dd7c3fe52fa /pkgs/development/ocaml-modules/tezos/protocol-compiler.nix | |
parent | 42481e7440dbc78a08bc8d1995d512c011515d7f (diff) | |
parent | 5c96c4d2845fd6224a2a8709d67b21369a4206c8 (diff) | |
download | nixpkgs-55a4a2d60a420ca83f31e3f659beb295fd6b8626.tar nixpkgs-55a4a2d60a420ca83f31e3f659beb295fd6b8626.tar.gz nixpkgs-55a4a2d60a420ca83f31e3f659beb295fd6b8626.tar.bz2 nixpkgs-55a4a2d60a420ca83f31e3f659beb295fd6b8626.tar.lz nixpkgs-55a4a2d60a420ca83f31e3f659beb295fd6b8626.tar.xz nixpkgs-55a4a2d60a420ca83f31e3f659beb295fd6b8626.tar.zst nixpkgs-55a4a2d60a420ca83f31e3f659beb295fd6b8626.zip |
Merge master into staging-next
Diffstat (limited to 'pkgs/development/ocaml-modules/tezos/protocol-compiler.nix')
-rw-r--r-- | pkgs/development/ocaml-modules/tezos/protocol-compiler.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/tezos/protocol-compiler.nix b/pkgs/development/ocaml-modules/tezos/protocol-compiler.nix new file mode 100644 index 00000000000..a43356d9cbe --- /dev/null +++ b/pkgs/development/ocaml-modules/tezos/protocol-compiler.nix @@ -0,0 +1,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"; + }; +} |