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