Merge pull request #231129 from vbgl/ocaml-prepare-dune-3
ocamlPackages: prepare for Dune 3
This commit is contained in:
commit
e7d6e5b740
4 changed files with 13 additions and 8 deletions
|
@ -13,8 +13,7 @@ buildDunePackage rec {
|
|||
sha256 = "sha256-9XTb0ozQ/DorlVJcS7ld320fZAi7T+EhV/pTeIT5h/0=";
|
||||
};
|
||||
|
||||
# dune 3 is required for tests to pass
|
||||
duneVersion = if doCheck then "3" else "2";
|
||||
duneVersion = "3";
|
||||
|
||||
nativeBuildInputs = [ cppo ];
|
||||
buildInputs = [ astring cmdliner fpath result tyxml odoc-parser fmt ];
|
||||
|
|
|
@ -23,7 +23,7 @@ buildDunePackage rec {
|
|||
inherit pname;
|
||||
version = "1.6.9";
|
||||
|
||||
useDune2 = true;
|
||||
duneVersion = "3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ocaml-community";
|
||||
|
|
|
@ -4,10 +4,13 @@ if lib.versionOlder (lib.getVersion cppo) "1.6"
|
|||
then cppo
|
||||
else
|
||||
|
||||
buildDunePackage rec {
|
||||
buildDunePackage {
|
||||
pname = "cppo_ocamlbuild";
|
||||
|
||||
inherit (cppo) version useDune2 src;
|
||||
inherit (cppo) version src;
|
||||
|
||||
minimalOCamlVersion = "4.03";
|
||||
duneVersion = "3";
|
||||
|
||||
propagatedBuildInputs = [ ocamlbuild ];
|
||||
|
||||
|
|
|
@ -1,15 +1,18 @@
|
|||
{ lib, fetchurl, yojson, csexp, buildDunePackage, merlin-lib, merlin }:
|
||||
{ lib, fetchurl, yojson, csexp, findlib, buildDunePackage, merlin-lib, merlin }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "dot-merlin-reader";
|
||||
|
||||
duneVersion = "3";
|
||||
|
||||
inherit (merlin) version src;
|
||||
|
||||
minimalOCamlVersion = "4.06";
|
||||
|
||||
buildInputs = if lib.versionAtLeast version "4.7-414"
|
||||
buildInputs = [ findlib ]
|
||||
++ (if lib.versionAtLeast version "4.7-414"
|
||||
then [ merlin-lib ]
|
||||
else [ yojson csexp ];
|
||||
else [ yojson csexp ]);
|
||||
|
||||
meta = with lib; {
|
||||
description = "Reads config files for merlin";
|
||||
|
|
Loading…
Reference in a new issue