2022-10-30 15:09:59 +00:00
|
|
|
{ lib, fetchFromGitHub, ocaml, buildDunePackage
|
2021-06-06 07:54:09 +00:00
|
|
|
, cmdliner, dap, fmt, iter, logs, lru, lwt_ppx, lwt_react, menhir, menhirLib, path_glob, ppx_deriving_yojson
|
2022-10-30 15:09:59 +00:00
|
|
|
, gitUpdater
|
2021-04-22 02:08:21 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.13"
|
2020-04-24 23:36:52 +00:00
|
|
|
then throw "earlybird is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "earlybird";
|
2021-04-22 02:08:21 +00:00
|
|
|
version = "1.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
duneVersion = "3";
|
2020-12-03 08:41:04 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
minimalOCamlVersion = "4.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hackwaly";
|
|
|
|
repo = "ocamlearlybird";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-8JHZWsgpz2pzpDxST3bkMSmPHtj7MDzD5G3ujqMW+MU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
nativeBuildInputs = [ menhir ];
|
|
|
|
|
|
|
|
buildInputs = [ cmdliner dap fmt iter logs lru lwt_ppx lwt_react menhirLib path_glob ppx_deriving_yojson ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/hackwaly/ocamlearlybird";
|
|
|
|
description = "OCaml debug adapter";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|