ocamlPackages.dot-merlin-reader: use Dune 3

This commit is contained in:
Vincent Laporte 2023-05-10 20:06:08 +02:00
parent 011e1aa383
commit ffcb033f38
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F

View file

@ -1,15 +1,18 @@
{ lib, fetchurl, yojson, csexp, buildDunePackage, merlin-lib, merlin }: { lib, fetchurl, yojson, csexp, findlib, buildDunePackage, merlin-lib, merlin }:
buildDunePackage rec { buildDunePackage rec {
pname = "dot-merlin-reader"; pname = "dot-merlin-reader";
duneVersion = "3";
inherit (merlin) version src; inherit (merlin) version src;
minimalOCamlVersion = "4.06"; minimalOCamlVersion = "4.06";
buildInputs = if lib.versionAtLeast version "4.7-414" buildInputs = [ findlib ]
++ (if lib.versionAtLeast version "4.7-414"
then [ merlin-lib ] then [ merlin-lib ]
else [ yojson csexp ]; else [ yojson csexp ]);
meta = with lib; { meta = with lib; {
description = "Reads config files for merlin"; description = "Reads config files for merlin";