2021-04-12 21:59:52 +02:00
|
|
|
{ lib, fetchurl, ocaml, buildDunePackage
|
2021-05-29 15:50:56 +02:00
|
|
|
, cmdliner, dap, fmt, iter, logs, lru, lwt_ppx, lwt_react, menhir, menhirLib, path_glob, ppx_deriving_yojson
|
2021-04-12 21:59:52 +02:00
|
|
|
}:
|
2019-10-28 03:07:32 +01:00
|
|
|
|
2021-04-12 21:59:52 +02:00
|
|
|
if lib.versionAtLeast ocaml.version "4.13"
|
2020-03-08 16:58:58 +01:00
|
|
|
then throw "earlybird is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2019-10-28 03:07:32 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "earlybird";
|
2021-04-12 21:59:52 +02:00
|
|
|
version = "1.1.0";
|
2019-10-28 03:07:32 +01:00
|
|
|
|
2020-12-01 07:49:29 +01:00
|
|
|
useDune2 = true;
|
|
|
|
|
2021-04-12 21:59:52 +02:00
|
|
|
minimumOCamlVersion = "4.11";
|
2019-10-28 03:07:32 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/hackwaly/ocamlearlybird/releases/download/${version}/${pname}-${version}.tbz";
|
2021-04-12 21:59:52 +02:00
|
|
|
sha256 = "1pwzhcr3pw24ra4j4d23vz71h0psz4xkyp7b12l2wl1slxzjbrxa";
|
2019-10-28 03:07:32 +01:00
|
|
|
};
|
|
|
|
|
2021-05-29 15:50:56 +02:00
|
|
|
buildInputs = [ cmdliner dap fmt iter logs lru lwt_ppx lwt_react menhir menhirLib path_glob ppx_deriving_yojson ];
|
2019-10-28 03:07:32 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/hackwaly/ocamlearlybird";
|
|
|
|
description = "OCaml debug adapter";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|