2020-09-23 05:51:13 +01:00
|
|
|
{ lib, fetchurl, buildDunePackage, substituteAll
|
|
|
|
, dot-merlin-reader, dune_2, yojson, csexp, result }:
|
2014-09-21 11:02:55 +01:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "merlin";
|
2014-07-05 16:29:21 +01:00
|
|
|
|
2020-12-30 20:49:04 +00:00
|
|
|
inherit (dot-merlin-reader) src version useDune2;
|
2014-07-05 16:29:21 +01:00
|
|
|
|
2020-09-23 05:51:13 +01: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 16:29:21 +01:00
|
|
|
|
2020-09-23 05:51:13 +01:00
|
|
|
buildInputs = [ dot-merlin-reader yojson csexp result ];
|
2014-07-05 16:29:21 +01:00
|
|
|
|
2019-12-03 17:18:33 +00:00
|
|
|
meta = with lib; {
|
2014-09-10 00:28:49 +01:00
|
|
|
description = "An editor-independent tool to ease the development of programs in OCaml";
|
2017-10-22 23:14:38 +01:00
|
|
|
homepage = "https://github.com/ocaml/merlin";
|
2014-09-21 11:02:55 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2014-07-05 16:29:21 +01:00
|
|
|
};
|
|
|
|
}
|