2021-07-07 11:34:04 +02:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
|
|
|
, ocaml
|
|
|
|
, tezos-stdlib
|
2021-09-21 10:47:59 +02:00
|
|
|
, lwt
|
2021-07-07 11:34:04 +02:00
|
|
|
, alcotest
|
|
|
|
, alcotest-lwt
|
2021-09-21 10:47:59 +02:00
|
|
|
, tezos-test-helpers
|
2021-07-07 11:34:04 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
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";
|
2021-09-21 10:47:59 +02:00
|
|
|
inherit (tezos-stdlib) version useDune2;
|
|
|
|
src = "${tezos-stdlib.base_src}/src/lib_lwt_result_stdlib";
|
2021-07-07 11:34:04 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-09-21 10:47:59 +02:00
|
|
|
lwt
|
2021-07-07 11:34:04 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
alcotest
|
|
|
|
alcotest-lwt
|
2021-09-21 10:47:59 +02:00
|
|
|
tezos-test-helpers
|
2021-07-07 11:34:04 +02:00
|
|
|
];
|
|
|
|
|
2021-09-21 10:47:59 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-07-07 11:34:04 +02:00
|
|
|
meta = tezos-stdlib.meta // {
|
|
|
|
description = "Tezos: error-aware stdlib replacement";
|
|
|
|
};
|
|
|
|
}
|