ocamlformat: build versions < 0.17 with OCaml 4.10

This commit is contained in:
Vincent Laporte 2021-04-20 05:33:27 +02:00 committed by Vincent Laporte
parent 731288ed01
commit 9ffb287d75

View File

@ -25,8 +25,10 @@ let src =
}."${version}"; }."${version}";
}; };
ocamlPackages = ocamlPackages =
if lib.versionAtLeast version "0.14.3" if lib.versionAtLeast version "0.17.0"
then ocaml-ng.ocamlPackages then ocaml-ng.ocamlPackages
else if lib.versionAtLeast version "0.14.3"
then ocaml-ng.ocamlPackages_4_10
else ocaml-ng.ocamlPackages_4_07 else ocaml-ng.ocamlPackages_4_07
; in ; in