3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/ocaml/merlin/default.nix

34 lines
913 B
Nix
Raw Normal View History

2020-09-23 05:51:13 +01:00
{ 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;
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";
})
];
2020-09-23 05:51:13 +01:00
buildInputs = [ dot-merlin-reader yojson csexp result ];
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";
license = licenses.mit;
maintainers = [ maintainers.vbgl ];
};
}