mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 21:33:07 +00:00
29d77c57ed
4.1 uncoupled the versions between merlin and dot-merlin-reader which means we can and must update them independently of each other since merlin 4.1 is only available in specific versions for OCaml 4.11 and 4.12 respectively. Therefore merlin now fetches its own source instead of inheriting it from dot-merlin-reader.
34 lines
913 B
Nix
34 lines
913 B
Nix
{ lib, fetchurl, buildDunePackage, substituteAll
|
|
, dot-merlin-reader, dune_2, yojson, csexp, result }:
|
|
|
|
buildDunePackage rec {
|
|
pname = "merlin";
|
|
version = "3.4.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ocaml/merlin/releases/download/v${version}/merlin-v${version}.tbz";
|
|
sha256 = "e1b7b897b11119d92995c558530149fd07bd67a4aaf140f55f3c4ffb5e882a81";
|
|
};
|
|
|
|
useDune2 = true;
|
|
|
|
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";
|
|
})
|
|
];
|
|
|
|
buildInputs = [ dot-merlin-reader yojson csexp result ];
|
|
|
|
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 ];
|
|
};
|
|
}
|