2023-05-24 13:37:59 +00:00
|
|
|
{ lib, fetchurl, yojson, csexp, findlib, buildDunePackage, merlin-lib, merlin, result }:
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "dot-merlin-reader";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
duneVersion = "3";
|
|
|
|
|
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
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
buildInputs = [ findlib ]
|
|
|
|
++ (if lib.versionAtLeast version "4.7-414"
|
2022-09-09 14:08:57 +00:00
|
|
|
then [ merlin-lib ]
|
2023-05-24 13:37:59 +00:00
|
|
|
else [ yojson csexp result ]);
|
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 ];
|
|
|
|
};
|
|
|
|
}
|