2020-10-07 09:15:18 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, substituteAll
|
|
|
|
, dot-merlin-reader, dune_2, yojson, csexp, result }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "merlin";
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
inherit (dot-merlin-reader) src version useDune2;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-07 09:15:18 +00: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";
|
|
|
|
})
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
buildInputs = [ dot-merlin-reader yojson csexp result ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An editor-independent tool to ease the development of programs in OCaml";
|
|
|
|
homepage = "https://github.com/ocaml/merlin";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
}
|