2022-08-09 14:14:28 +00:00
|
|
|
{ lib, fetchurl, yojson, csexp, buildDunePackage, merlin-lib, merlin }:
|
2020-09-23 05:13:51 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "dot-merlin-reader";
|
2020-12-30 20:49:04 +00:00
|
|
|
|
2022-08-09 14:14:28 +00:00
|
|
|
inherit (merlin) version src;
|
2020-09-23 05:13:51 +00:00
|
|
|
|
2022-08-09 14:14:28 +00:00
|
|
|
minimalOCamlVersion = "4.06";
|
2020-09-23 05:13:51 +00:00
|
|
|
|
2022-08-09 14:14:28 +00:00
|
|
|
buildInputs = if lib.versionAtLeast version "4.6-414"
|
|
|
|
then [ merlin-lib ]
|
|
|
|
else [ yojson csexp ];
|
2020-09-23 05:13:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Reads config files for merlin";
|
|
|
|
homepage = "https://github.com/ocaml/merlin";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.hongchangwu ];
|
|
|
|
};
|
|
|
|
}
|