Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

41 lines
645 B
Nix

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