nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 yojson,
4 csexp,
5 findlib,
6 buildDunePackage,
7 merlin-lib,
8 merlin,
9 result,
10}:
11
12buildDunePackage rec {
13 pname = "dot-merlin-reader";
14
15 inherit (merlin) version src;
16
17 minimalOCamlVersion = "4.06";
18
19 buildInputs = [
20 findlib
21 ]
22 ++ (
23 if lib.versionAtLeast version "4.7-414" then
24 [ merlin-lib ]
25 else
26 [
27 yojson
28 csexp
29 result
30 ]
31 );
32
33 meta = {
34 description = "Reads config files for merlin";
35 mainProgram = "dot-merlin-reader";
36 homepage = "https://github.com/ocaml/merlin";
37 license = lib.licenses.mit;
38 maintainers = [ lib.maintainers.hongchangwu ];
39 };
40}