mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
5c96c4d284
Init all tezos packages needed to build LIGO
33 lines
595 B
Nix
33 lines
595 B
Nix
{ lib
|
|
, buildDunePackage
|
|
, ocaml
|
|
, tezos-stdlib
|
|
, tezos-error-monad
|
|
, alcotest
|
|
, alcotest-lwt
|
|
, crowbar
|
|
}:
|
|
|
|
if lib.versionAtLeast ocaml.version "4.12" then
|
|
throw "tezos-lwt-result-stdlib-${tezos-stdlib.version} is not available for OCaml > 4.10"
|
|
else
|
|
|
|
buildDunePackage {
|
|
pname = "tezos-lwt-result-stdlib";
|
|
inherit (tezos-stdlib) version src useDune2 preBuild doCheck;
|
|
|
|
propagatedBuildInputs = [
|
|
tezos-error-monad
|
|
];
|
|
|
|
checkInputs = [
|
|
alcotest
|
|
alcotest-lwt
|
|
crowbar
|
|
];
|
|
|
|
meta = tezos-stdlib.meta // {
|
|
description = "Tezos: error-aware stdlib replacement";
|
|
};
|
|
}
|