2024-07-27 06:49:29 +00:00
|
|
|
{ lib, fetchurl, fetchpatch, buildDunePackage, substituteAll
|
2022-03-05 16:20:37 +00:00
|
|
|
, dot-merlin-reader, dune_2, yojson, csexp, result, menhirSdk }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "merlin";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "3.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
src = fetchurl {
|
2022-09-09 14:08:57 +00:00
|
|
|
url = "https://github.com/ocaml/merlin/releases/download/v${version}/merlin-${version}.tbz";
|
|
|
|
sha256 = "sha256-wmBGNwXL3BduF4o1sUXtAOUHJ4xmMvsWAxl/QdNj/28=";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
minimalOCamlVersion = "4.02.3";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
dot_merlin_reader = "${dot-merlin-reader}/bin/dot-merlin-reader";
|
|
|
|
dune = "${dune_2}/bin/dune";
|
|
|
|
})
|
2024-07-27 06:49:29 +00:00
|
|
|
# https://github.com/ocaml/merlin/pull/1798
|
|
|
|
(fetchpatch {
|
|
|
|
name = "vim-python-12-syntax-warning-fix.patch";
|
|
|
|
url = "https://github.com/ocaml/merlin/commit/9e0c47b0d5fd0c4edc37c4c7ce927b155877557d.patch";
|
|
|
|
hash = "sha256-HmdTISE/s45C5cwLgsCHNUW6OAPSsvQ/GcJE6VDEobs=";
|
|
|
|
})
|
2020-10-07 09:15:18 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
buildInputs = [ dot-merlin-reader yojson csexp result menhirSdk ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Editor-independent tool to ease the development of programs in OCaml";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/ocaml/merlin";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
}
|