about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/tezos/lwt-result-stdlib.nix
blob: 89c15b0f6345ff805c151ffa6f716f9b02ec43e9 (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
35
{ lib
, buildDunePackage
, ocaml
, tezos-stdlib
, lwt
, alcotest
, alcotest-lwt
, tezos-test-helpers
}:

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 useDune2;
  src = "${tezos-stdlib.base_src}/src/lib_lwt_result_stdlib";

  propagatedBuildInputs = [
    lwt
  ];

  checkInputs = [
    alcotest
    alcotest-lwt
    tezos-test-helpers
  ];

  doCheck = true;

  meta = tezos-stdlib.meta // {
    description = "Tezos: error-aware stdlib replacement";
  };
}