haxe: build versions < 4.2 with OCaml 4.10

This commit is contained in:
Vincent Laporte
2021-04-20 05:46:16 +02:00
committed by Vincent Laporte
parent 44339cc0b0
commit ab51ade9a3
2 changed files with 19 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
let
ocamlDependencies = version:
if lib.versionAtLeast version "4.0"
if lib.versionAtLeast version "4.2"
then with ocaml-ng.ocamlPackages; [
ocaml
findlib
@@ -13,8 +13,19 @@ let
sha
dune_2
luv
(if lib.versionAtLeast version "4.2"
then ocaml_extlib else ocaml_extlib-1-7-7)
ocaml_extlib
] else if lib.versionAtLeast version "4.0"
then with ocaml-ng.ocamlPackages_4_10; [
ocaml
findlib
sedlex_2
xml-light
ptmap
camlp5
sha
dune_2
luv
ocaml_extlib-1-7-7
] else with ocaml-ng.ocamlPackages_4_05; [
ocaml
camlp4