2022-09-09 14:08:57 +00:00
|
|
|
{ lib, fetchurl, yojson, csexp, buildDunePackage, merlin-lib, merlin }:
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "dot-merlin-reader";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
inherit (merlin) version src;
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
minimalOCamlVersion = "4.06";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
buildInputs = if lib.versionAtLeast version "4.6-414"
|
|
|
|
then [ merlin-lib ]
|
|
|
|
else [ yojson csexp ];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Reads config files for merlin";
|
|
|
|
homepage = "https://github.com/ocaml/merlin";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.hongchangwu ];
|
|
|
|
};
|
|
|
|
}
|