2020-09-22 21:51:13 -07:00
|
|
|
{ lib, fetchurl, buildDunePackage, substituteAll
|
|
|
|
, dot-merlin-reader, dune_2, yojson, csexp, result }:
|
2014-09-21 03:02:55 -07:00
|
|
|
|
2018-11-05 02:21:46 -08:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "merlin";
|
2014-07-05 08:29:21 -07:00
|
|
|
|
2020-12-30 12:49:04 -08:00
|
|
|
inherit (dot-merlin-reader) src version useDune2;
|
2014-07-05 08:29:21 -07:00
|
|
|
|
2020-09-22 21:51:13 -07:00
|
|
|
minimumOCamlVersion = "4.02.3";
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
dot_merlin_reader = "${dot-merlin-reader}/bin/dot-merlin-reader";
|
|
|
|
dune = "${dune_2}/bin/dune";
|
|
|
|
})
|
|
|
|
];
|
2014-07-05 08:29:21 -07:00
|
|
|
|
2020-09-22 21:51:13 -07:00
|
|
|
buildInputs = [ dot-merlin-reader yojson csexp result ];
|
2014-07-05 08:29:21 -07:00
|
|
|
|
2019-12-03 09:18:33 -08:00
|
|
|
meta = with lib; {
|
2014-09-09 16:28:49 -07:00
|
|
|
description = "An editor-independent tool to ease the development of programs in OCaml";
|
2017-10-22 15:14:38 -07:00
|
|
|
homepage = "https://github.com/ocaml/merlin";
|
2014-09-21 03:02:55 -07:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2014-07-05 08:29:21 -07:00
|
|
|
};
|
|
|
|
}
|