about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/ocaml/merlin/dot-merlin-reader.nix
blob: 89af62ed70e6e7b1fb5a076ba0fb731b7e2888f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, fetchurl, 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";
    homepage = "https://github.com/ocaml/merlin";
    license = licenses.mit;
    maintainers = [ maintainers.hongchangwu ];
  };
}