depot/third_party/nixpkgs/pkgs/development/tools/ocaml/merlin/dot-merlin-reader.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

24 lines
596 B
Nix

{ lib, yojson, csexp, findlib, buildDunePackage, merlin-lib, merlin, result }:
buildDunePackage rec {
pname = "dot-merlin-reader";
duneVersion = "3";
inherit (merlin) version src;
minimalOCamlVersion = "4.06";
buildInputs = [ findlib ]
++ (if lib.versionAtLeast version "4.7-414"
then [ merlin-lib ]
else [ yojson csexp result ]);
meta = with lib; {
description = "Reads config files for merlin";
mainProgram = "dot-merlin-reader";
homepage = "https://github.com/ocaml/merlin";
license = licenses.mit;
maintainers = [ maintainers.hongchangwu ];
};
}